Esempio n. 1
0
        public void ToMatrix(out Matrix result)
        {
            var q = Quaternion.FromVector4(Orientation.ToVector4());

            Matrix.CreateFromQuaternion(ref q, out result);
            result.Translation = Position;
        }
Esempio n. 2
0
 public void ToMatrix(out VRageMath.Matrix result)
 {
     VRageMath.Matrix.CreateFromQuaternion(ref Quaternion.FromVector4(this.Orientation.ToVector4()), out result);
     result.Translation = this.Position;
 }