Holds the velocity of an object in both orbital and prograde reference frames. (Note this may become moot after vector reference frame transformation is implemented.)
Inheritance: kOS.Suffixed.SpecialValue
Exemplo n.º 1
0
        public Direction GetSurfaceRetrograde()
        {
            Vector3d          up         = GetUpVector().ToVector3D();
            OrbitableVelocity vels       = GetVelocities();
            Vector3d          normSrfVec = vels.Surface.Normalized().ToVector3D();

            var d = new Direction {
                Rotation = Quaternion.LookRotation(normSrfVec * (-1), up)
            };

            return(d);
        }
Exemplo n.º 2
0
        public Direction GetPrograde()
        {
            Vector3d          up         = GetUpVector().ToVector3D();
            OrbitableVelocity vels       = GetVelocities();
            Vector3d          normOrbVec = vels.Orbital.Normalized().ToVector3D();

            var d = new Direction {
                Rotation = Quaternion.LookRotation(normOrbVec, up)
            };

            return(d);
        }