Fractrace.Geometry.VecRotation.toQuaternion C# (CSharp) Méthode

toQuaternion() protected méthode

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