MathLib
Loading...
Searching...
No Matches
Namespaces | Functions
TestQuaternion.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  QuaternionTests
 

Functions

void TestRotationAtRegularIntervals (Quaternionf begin, Degreef amount_of_rotation, Vector3Df rotation_axis, int num_equal_steps)
 
void Run ()
 
int main (void)
 
void UnitQuaternionIsAsExpected ()
 
void ZeroQuaternionIsAsExpected ()
 
void QuaternionIsConstructedAsExpected ()
 
void QuaternionAddsPerComponent ()
 
void OperatorEqualsComparesMatchingComponents ()
 
void OperatorNotEqualsIsOppositeOfEquals ()
 
void CopyOperatorIsImplemented ()
 
void ConjugateInvertsTheImaginaryComponents ()
 
void ConjugateIsItsOwnInverse ()
 
void RotatingA3DPointByUnitRotationLeavesPointUnchanged ()
 
void IJKUnitQuaternionsAreDefined ()
 
void ISquaredIsNegativeOne ()
 
void JSquaredIsNegativeOne ()
 
void KSquaredIsNegativeOne ()
 
void IJKIsNegativeOne ()
 
void IJEqualsK ()
 
void JIEqualsNegativeK ()
 
void JKEqualsI ()
 
void KJEqualsNegativeI ()
 
void KIEqualsJ ()
 
void IKEqualsNegativeJ ()
 
void HasOperatorNegate ()
 
void OperatorPlusAndMinusAreInverses ()
 
void NormIsEquivalentToDistance ()
 
void UnitQuaternionHasNormOfOne ()
 
void DividingByAScalarDividesEachComponent ()
 
void MultiplyingByAScalarMultipliesEachComponent ()
 
void MultiplyingByItsOwnInverseProducesUnity ()
 
void InverseOfAUnitQuaternionIsItsConjugate ()
 
void UnitQuaternionIsNear1 ()
 
void MakePureQuaternionSetsRealComponentToZero ()
 
void MakePureQuaternionSetsImaginaryVectorToInputParameters ()
 
void ImaginaryReturnsIJK ()
 
void DotProductMultiplesCorrespondingElementsAndThenSumsTheResultingValues ()
 
void MultiplyingAQuaternionByItsConjugateProducesAPureRealNumber ()
 
void MagnitudeSquaredIsValueOfRealPartOfProductOfAQuaternionAndItsConjugate ()
 
void DivisionIsJustMultiplyingByTheInverse ()
 
void ARotationIsStoredAsTheHalfAngle ()
 
void MakingARotationIsAccurate ()
 
void PerformTwoConsecutiveRotations ()
 
void TestPow ()
 
void TestExp ()
 
void ExpAndLogAreInversesOfEachOther ()
 
void TestSlerp ()
 
void IsNaNIsTrueWhenAtLeastOneMemberIsNaN ()
 
void IsInfIsTrueWhenAtLeastOneMemberIsInf ()
 
void DivideByZeroProducesInf ()
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 744 of file TestQuaternion.cpp.