Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Functions
test-trigonometry.cpp File Reference
#include <EASTL/array.h>
#include <stdint.h>
#include "psyqo/trigonometry.hh"
#include "snitch_all.hpp"
Include dependency graph for test-trigonometry.cpp:

Functions

 TEST_CASE ("cos(0) = 1")
 
 TEST_CASE ("sin(pi) close to 0")
 
 TEST_CASE ("sin/cos Pythagorean identity")
 
 TEST_CASE ("cos error over all angles, 20.12")
 
 TEST_CASE ("cos error over all angles, 8.24")
 
 TEST_CASE ("Angle literal _pi")
 

Function Documentation

◆ TEST_CASE() [1/6]

TEST_CASE ( "Angle literal _pi"  )

◆ TEST_CASE() [2/6]

TEST_CASE ( "cos error over all  angles,
20.12"   
)

◆ TEST_CASE() [3/6]

TEST_CASE ( "cos error over all  angles,
8.24"   
)

◆ TEST_CASE() [4/6]

TEST_CASE ( )

◆ TEST_CASE() [5/6]

TEST_CASE ( "sin(pi) close to 0"  )

◆ TEST_CASE() [6/6]

TEST_CASE ( "sin/cos Pythagorean identity"  )