Megadocs 0.0.1
All of megapop's internal libraries
Megapop.MegaCore.QuaternionExt Class Reference

Extension methods for quaternions More...

Static Public Member Functions

static bool SameOrientation (this Quaternion q1, Quaternion q2)
 Two quaternions can represent different rotations that lead to the same final orientation (one rotating around Axis with Angle, the other around -Axis with 2Pi-Angle). In this case, the quaternion == operator will return false. This method will return true. More...
 
static bool DifferentOrientation (this Quaternion q1, Quaternion q2)
 Two quaternions can represent different rotations that lead to the same final orientation (one rotating around Axis with Angle, the other around -Axis with 2Pi-Angle). In this case, the quaternion != operator will return true. This method will return false. More...
 

Detailed Description

Extension methods for quaternions

Member Function Documentation

◆ DifferentOrientation()

static bool Megapop.MegaCore.QuaternionExt.DifferentOrientation ( this Quaternion  q1,
Quaternion  q2 
)
static

Two quaternions can represent different rotations that lead to the same final orientation (one rotating around Axis with Angle, the other around -Axis with 2Pi-Angle). In this case, the quaternion != operator will return true. This method will return false.

Parameters
q1
q2
Returns

◆ SameOrientation()

static bool Megapop.MegaCore.QuaternionExt.SameOrientation ( this Quaternion  q1,
Quaternion  q2 
)
static

Two quaternions can represent different rotations that lead to the same final orientation (one rotating around Axis with Angle, the other around -Axis with 2Pi-Angle). In this case, the quaternion == operator will return false. This method will return true.

Parameters
q1
q2
Returns

The documentation for this class was generated from the following file: