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