Nugget
Loading...
Searching...
No Matches
Functions
test-soft-math.cpp File Reference
#include "psyqo/soft-math.hh"
#include "snitch_all.hpp"
Include dependency graph for test-soft-math.cpp:

Functions

 TEST_CASE ("Rotation matrix at angle 0 is identity")
 
 TEST_CASE ("Rotation matrix Y-axis at 0 is identity")
 
 TEST_CASE ("Rotation matrix Z-axis at 0 is identity")
 
 TEST_CASE ("Matrix multiply with identity")
 
 TEST_CASE ("Identity matrix * vector = vector")
 
 TEST_CASE ("Matrix-vector XY extraction")
 
 TEST_CASE ("Matrix-vector Z extraction")
 
 TEST_CASE ("Cross product of basis vectors")
 
 TEST_CASE ("Cross product anti-commutativity")
 
 TEST_CASE ("Cross product of parallel vectors is zero")
 
 TEST_CASE ("Identity matrix determinant is 1")
 
 TEST_CASE ("Rotation matrix determinant is 1")
 
 TEST_CASE ("Square root of 4 is 2")
 
 TEST_CASE ("Square root of 1 is 1")
 
 TEST_CASE ("Square root of 9 is 3")
 
 TEST_CASE ("Norm of unit vectors is 1")
 
 TEST_CASE ("Norm of (3, 4, 0) is 5")
 
 TEST_CASE ("Normalized vector has unit length")
 
 TEST_CASE ("Matrix scale")
 
 TEST_CASE ("Perspective projection")
 

Function Documentation

◆ TEST_CASE() [1/20]

TEST_CASE ( "Cross product anti-commutativity"  )

◆ TEST_CASE() [2/20]

TEST_CASE ( "Cross product of basis vectors"  )

◆ TEST_CASE() [3/20]

TEST_CASE ( "Cross product of parallel vectors is zero"  )

◆ TEST_CASE() [4/20]

TEST_CASE ( )

◆ TEST_CASE() [5/20]

TEST_CASE ( "Identity matrix determinant is 1"  )

◆ TEST_CASE() [6/20]

TEST_CASE ( "Matrix multiply with identity"  )

◆ TEST_CASE() [7/20]

TEST_CASE ( "Matrix scale"  )

◆ TEST_CASE() [8/20]

TEST_CASE ( "Matrix-vector XY extraction"  )

◆ TEST_CASE() [9/20]

TEST_CASE ( "Matrix-vector Z extraction"  )

◆ TEST_CASE() [10/20]

TEST_CASE ( "Norm of (3, 4, 0) is 5"  )

◆ TEST_CASE() [11/20]

TEST_CASE ( "Norm of unit vectors is 1"  )

◆ TEST_CASE() [12/20]

TEST_CASE ( "Normalized vector has unit length"  )

◆ TEST_CASE() [13/20]

TEST_CASE ( "Perspective projection"  )

◆ TEST_CASE() [14/20]

TEST_CASE ( "Rotation matrix at angle 0 is identity"  )

◆ TEST_CASE() [15/20]

TEST_CASE ( "Rotation matrix determinant is 1"  )

◆ TEST_CASE() [16/20]

TEST_CASE ( "Rotation matrix Y-axis at 0 is identity"  )

◆ TEST_CASE() [17/20]

TEST_CASE ( "Rotation matrix Z-axis at 0 is identity"  )

◆ TEST_CASE() [18/20]

TEST_CASE ( "Square root of 1 is 1"  )

◆ TEST_CASE() [19/20]

TEST_CASE ( "Square root of 4 is 2"  )

◆ TEST_CASE() [20/20]

TEST_CASE ( "Square root of 9 is 3"  )