Commit 159d6424 authored by jonasstienen's avatar jonasstienen
Browse files

Fixing some problems with legacy functions (so BRAS simulation scripts still run)

parent ecb43259
......@@ -5,7 +5,7 @@ function apx = apex_point_approx( obj, source_pos, receiver_pos, spatial_precisi
end
ap_start = obj.location;
ap_dir = obj.aperture_direction;
ap_dir = obj.edge_direction;
S_on_ap = orthogonal_projection( ap_start, ap_dir, source_pos ); %project the source to the aperture
S_t = (S_on_ap - ap_start) / ap_dir;
......
......@@ -201,24 +201,29 @@ classdef itaInfiniteWedge
% Legacy support (before renaming aperture to apex)
function apx = approx_aperture_point( obj, source_pos, receiver_pos, spatial_precision )
apx = obj.apex_point_approx( obj, source_pos, receiver_pos, spatial_precision );
function apx = approx_aperture_point( obj, source_pos, receiver_pos, varargin )
if nargin == 3
apx = obj.apex_point_approx( source_pos, receiver_pos );
else
spatial_precision = varargin;
apx = obj.apex_point_approx( source_pos, receiver_pos, spatial_precision );
end
end
function ap = get_aperture_point_far_field( obj, source_pos, receiver_pos )
ap = obj.apex_point( obj, source_pos, receiver_pos );
ap = obj.apex_point( source_pos, receiver_pos );
end
function b = point_on_aperture( obj, point )
b = obj.point_on_edge( obj, point );
b = obj.point_on_edge( point );
end
function alpha_rad = get_angle_from_point_to_aperture( obj, field_point, point_on_edge )
alpha_rad = obj.get_angle_from_point_to_apex( obj, field_point, point_on_edge );
alpha_rad = obj.get_angle_from_point_to_apex( field_point, point_on_edge );
end
function ap = get_aperture_point( obj, source_pos, receiver_pos )
ap = obj.apex_point( obj, source_pos, receiver_pos );
ap = obj.apex_point( source_pos, receiver_pos );
end
function n = get.aperture_direction( obj )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment