MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / Arccos

Method Arccos

TSMath.cpp:392–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392float Terathon::Arccos(float x)
393{
394 float r = Arctan(Sqrt(1.0F - x * x) / x);
395 return ((x < 0.0F) ? r + Math::tau_over_2 : r);
396}
397
398float Terathon::Arctan(float x)
399{

Callers

nothing calls this directly

Calls 1

SqrtFunction · 0.85

Tested by

no test coverage detected