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

Method cosQ

Processing/game2dai/maths/FastMath.java:2120–2129  ·  view source on GitHub ↗

Compute cosine in the first quadrant by subtracting input from PI/2 and then calling sinQ. This is more accurate as the input approaches PI/2. @param xa number from which cosine is requested @param xb extra bits for x (may be 0.0) @return cos(xa + xb)

(double xa, double xb)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

sinMethod · 0.95
cosMethod · 0.95

Calls 1

sinQMethod · 0.95

Tested by

no test coverage detected