MCPcopy Create free account
hub / github.com/dabing1022/Blog / reducePayneHanek

Method reducePayneHanek

Processing/game2dai/maths/FastMath.java:2287–2497  ·  view source on GitHub ↗

Reduce the input argument using the Payne and Hanek method. This is good for all inputs 0.0 < x < inf Output is remainder after dividing by PI/2 The result array should contain 3 numbers. result[0] is the integer portion, so mod 4 this gives the quadrant. result[1] is the upper bits of the rema

(double x, double result[])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

sinMethod · 0.95
cosMethod · 0.95
tanMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected