Fractrace.Geometry.VecRotation.toQuaternion C# (CSharp) 메소드

toQuaternion() 보호된 메소드

if this rotation is not already coded as quaternion then convert it to quaternion
protected toQuaternion ( ) : void
리턴 void
        protected void toQuaternion()
        {
            double s = Math.Sin(Angle / 2);
            X = (double)(X * s);
            Y = (double)(Y * s);
            Z = (double)(Z * s);
            Angle = (double)Math.Cos(Angle / 2);
        }