C# Class Abacus.DoublePrecision.QuaternionTests

Show file Open project: sungiant/abacus

Private Methods

Method Description
AssertEqualOrNegatedWithinReason ( Quaternion a, Quaternion b ) : void
AssertEqualWithinReason ( Quaternion a, Quaternion b ) : void

Helper to encapsulate asserting that two Quaternions are equal.

GetNextRandomDouble ( ) : Double

Helper function for getting the next random Double value.

GetNextRandomQuaternion ( ) : Quaternion

Helper function for getting the next random Quaternion.

QuaternionTests ( ) : System

Static constructor used to ensure that the random number generator always gets initilised with the same seed, making the tests behave in a deterministic manner.

TestAddition ( Quaternion a, Quaternion b, Quaternion expected ) : void

Helper method for testing addition.

TestConstant_Identity_i ( ) : void
TestEquality ( Quaternion a, Quaternion b, System.Boolean expected ) : void

Helper method for testing equality.

TestMemberFn_GetHashCode ( ) : void
TestMemberFn_ToString ( ) : void
TestMultiplication ( Quaternion a, Quaternion b, Quaternion expected ) : void

Helper method for testing multiplication.

TestNegation ( Quaternion a, Quaternion expected ) : void

Helper method for testing negation.

TestOperator_Addition_i ( ) : void
TestOperator_Addition_ii ( ) : void
TestOperator_Equality_i ( ) : void
TestOperator_Equality_ii ( ) : void
TestOperator_Equality_iii ( ) : void
TestOperator_Multiplication_i ( ) : void
TestOperator_Multiplication_ii ( ) : void
TestOperator_Negation_i ( ) : void
TestOperator_Negation_ii ( ) : void
TestOperator_Subtraction_i ( ) : void
TestOperator_Subtraction_ii ( ) : void
TestStaticFn_Concatenate_i ( ) : void
TestStaticFn_Conjugate_i ( ) : void
TestStaticFn_CreateFromAxisAngle_i ( ) : void
TestStaticFn_CreateFromRotationMatrix_i ( ) : void
TestStaticFn_CreateFromYawPitchRoll_i ( ) : void
TestStaticFn_Dot_i ( ) : void
TestStaticFn_Inverse_i ( ) : void
TestStaticFn_Lerp_i ( ) : void
TestStaticFn_Normalise_i ( ) : void
TestStaticFn_Slerp_i ( ) : void
TestSubtraction ( Quaternion a, Quaternion b, Quaternion expected ) : void

Helper method for testing subtraction.

Test_Constructors_i ( ) : void
Test_StructLayout_i ( ) : void
Test_StructLayout_ii ( ) : void