Esempio n. 1
0
        void Awake()
        {
            var ecefPoint = LatLong.FromDegrees(InitialLatitude, InitialLongitude).ToECEF();
            var heading   = InitialHeadingInDegrees;

            TangentBasis = EcefHelpers.EcefTangentBasisFromPointAndHeading(ecefPoint, heading);
        }
Esempio n. 2
0
 /// <summary>
 /// Set the heading in degrees of this transform, relative to north.
 /// </summary>
 /// <param name="headingInDegrees">The new heading of the transform.</param>
 public void SetHeading(float headingInDegrees)
 {
     m_tangentBasis = EcefHelpers.EcefTangentBasisFromPointAndHeading(m_tangentBasis.PointEcef, headingInDegrees);
 }