MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / asin

Method asin

src/main/java/field/linalg/BaseMath.java:61–63  ·  view source on GitHub ↗

Input-checking inverse sine. Clamps the input to the domain of acos [-1..1] before evaluating, instead of returning a silent NaN like java.lang.Math.asin. Useful when there's a fear of rounding errors pushing the arg beyond 1 or -1.

(double sin_theta)

Source from the content-addressed store, hash-verified

59 * rounding errors pushing the arg beyond 1 or -1.
60 */
61 public static final double asin(double sin_theta) {
62 return Math.asin(clamp(sin_theta, -1.0, 1.0));
63 }
64
65 /**
66 * a sign safe version of pow, _always_ monotically increasing for positive pow

Callers 9

tnFunction · 0.80
uFunction · 0.80
beFunction · 0.80
weFunction · 0.80
LrFunction · 0.80
d3.min.jsFile · 0.80
HbFunction · 0.80
raphael-min.jsFile · 0.80
getEulerAnglesXYZMethod · 0.80

Calls 1

clampMethod · 0.95

Tested by

no test coverage detected