OpenTK.Quaterniond.Exp C# (CSharp) Method

Exp() public method

public Exp ( ) : void
return void
        public void Exp()
        {
            double angle = System.Math.Sqrt(X * X + Y * Y + Z * Z);
            double sin = System.Math.Sin(angle);

            if (System.Math.Abs(sin) > 0)
            {
                double coefficient = angle / sin;
                W = 0;
                X = X * coefficient;
                Y = Y * coefficient;
                Z = Z * coefficient;
            }
            else
            {
                W = 0;
            }
        }
        public void Exp(out Quaterniond result)

Same methods

Quaterniond::Exp ( &result ) : void
Quaterniond::Exp ( &Quaterniond, &result ) : void