[betaP betaT beta] = TargPtAngle(G,pt1,pt2)
Computes the angular separation between two points on a target as seen from the platform. The input points should be specified in target P/T coordinate frame.
Parameters 
Description 
G [struct] 
Geometry structure as from GeomStruct 
pt1 [array] 
First point on the target (m). Array size should be NGx2. 
pt2 [array] 
Second point [NGx2] on the target (m) 
Return Values 
Description 
betaP [vector] 
Angular separation between the points in the target Paxis (rad) 
betaT [vector] 
Angular separation between the points in the target Taxis (rad) 
beta [vector] 
Full angular separation between points (rad) 
>> Targ = TargStruct; Targ.trackpt = [0; 0]; Targ.HELpt = [0.25; 0];
>> [betaP betaT beta] = TargPtAngle(GeomStruct,[Targ.HELpt]',[Targ.trackpt]')
Copyright (c) 2009. All rights reserved.

What do you think about this topic? Send feedback!
