IrrlichtNETCP.Quaternion.operator C# (CSharp) Method

operator() public static method

public static operator ( ) : Quaternion
return Quaternion
        public static Quaternion operator *(Quaternion lhs, Quaternion rhs)
        {
            Quaternion tmp=new Quaternion();

            tmp.W = (rhs.W * lhs.W) - (rhs.X * lhs.X) - (rhs.Y * lhs.Y) - (rhs.Z * lhs.Z);
            tmp.X = (rhs.W * lhs.X) + (rhs.X * lhs.W) + (rhs.Y * lhs.Z) - (rhs.Z * lhs.Y);
            tmp.Y = (rhs.W * lhs.Y) + (rhs.Y * lhs.W) + (rhs.Z * lhs.X) - (rhs.X * lhs.Z);
            tmp.Z = (rhs.W * lhs.Z) + (rhs.Z * lhs.W) + (rhs.X * lhs.Y) - (rhs.Y * lhs.X);

            return tmp;
        }

Same methods

Quaternion::operator ( ) : IrrlichtNETCP.Vector3D
Quaternion::operator ( ) : bool