|
XfnCalcAzimuthElevationOfTarget Method
|
방위각과 고도방위각도를 계산한다.
Namespace: Pixoneer.NXDLAssembly: NXDL (in NXDL.dll) Version: 2.0.3.38
Syntaxpublic static void CalcAzimuthElevationOfTarget(
XVertex3d vPos,
XAngle yaw,
XAngle pitch,
XAngle roll,
XVertex3d vTarget,
ref XAngle azimuth,
ref XAngle elev
)
Parameters
- vPos XVertex3d
- [In] ECEF position
- yaw XAngle
- [In] The z-axis is defined to be perpendicular to the body
- pitch XAngle
- [In] The y-axis (also called transverse axis)
- roll XAngle
- [In] The x-axis passes
- vTarget XVertex3d
- [In] ECEF position
- azimuth XAngle
- [Out] azimuth angle
- elev XAngle
- [Out] elevation azimuth angle
ExampleXGeoPoint body = XGeoPoint.Fromdegree(127.0, 36.0, 1000);
XGeoPoint target = XGeoPoint.Fromdegree(128.0, 36.0, 1000);
XAngle yaw = XAngle.FromDegree(0);
XAngle pitch = XAngle.FromDegree(0);
XAngle roll = XAngle.FromDegree(0);
XAngle az = XAngle.FromDegree(0);
XAngle elevation = XAngle.FromDegree(0);
bool bResult = Xfn.CalcAzimuthElevationOfTarget(body.ecr, yaw, pitch, roll, target.ecr, ref az, ref elevation);
Console.WriteLine("Azimuth Angle : " + az.deg.ToString());
Console.WriteLine("Elevation Angle : " + elevation.deg.ToString());
See Also