Ejemplo n.º 1
0
        public Matrix4 ToMatrix()
        {
            Vector3 vector = this.ToVector();
            Vector2 data   = this.Data;

            data.X -= Math.Pi * 0.5f;
            Vector3 vector2 = new PitchRoll(data).ToVector().Cross(vector).Normalize();
            Vector3 vector3 = vector.Cross(vector2);
            Matrix4 matrix  = default(Matrix4);

            matrix.ColumnX = vector2.Xyz0;
            matrix.ColumnY = vector3.Xyz0;
            matrix.ColumnZ = vector.Xyz0;
            matrix.ColumnW = Math._0001;
            return(matrix.InverseOrthonormal());
        }
Ejemplo n.º 2
0
 public Vector3 ToVector()
 {
     return(PitchRoll.ToVector(this.Data));
 }
Ejemplo n.º 3
0
 public PitchRoll(Vector3 v)
 {
     this.Data = PitchRoll.FromVector(v);
 }