Fractrace.Geometry.VecRotation.toQuaternion C# (CSharp) Method

toQuaternion() protected method

if this rotation is not already coded as quaternion then convert it to quaternion
protected toQuaternion ( ) : void
return 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);
        }