Click or drag to resize

Quaternion Operators

The Quaternion type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberAddition
Adds two quaternions.

This sums each quaternion coefficient with its correspondent and returns a new result quaternion.

Public operatorStatic memberDivision
Divides all quaternion coefficients by a factor and returns a new quaternion with the result.
Public operatorStatic memberEquality
Determines whether two quaternions have the same value.
Public operatorStatic memberInequality
Determines whether two quaternions have different values.
Public operatorStatic memberMultiply(Quaternion, Quaternion)
Multiplies a quaternion with another one.

Quaternion multiplication (Hamilton product) is not commutative.

Public operatorStatic memberMultiply(Quaternion, Double)
Multiplies (scales) all quaternion coefficients by a factor and returns a new quaternion with the result.
Public operatorStatic memberMultiply(Quaternion, Int32)
Multiplies (scales) all quaternion coefficients by a factor and returns a new quaternion with the result.
Public operatorStatic memberMultiply(Quaternion, Single)
Multiplies (scales) all quaternion coefficients by a factor and returns a new quaternion with the result.
Public operatorStatic memberSubtraction
Subtracts a quaternion from another one.

This computes the difference of each quaternion coefficient with its correspondent and returns a new result quaternion.

Top
See Also