Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenEndedGroup/Field2
/ safeAcos
Method
safeAcos
src/main/java/field/linalg/BaseMath.java:238–242 ·
view source on GitHub ↗
(double d)
Source
from the content-addressed store, hash-verified
236
}
237
238
public
static
double safeAcos(double d) {
239
if
(d > 1) d = 1;
240
if
(d < -1) d = -1;
241
return
Math.acos(d);
242
}
243
244
static
public
Vec3 circumcenterOf(Vec3 A, Vec3 B, Vec3 C) {
245
Vec3 r =
new
Vec3();
Callers
nothing calls this directly
Calls
1
acos
Method · 0.80
Tested by
no test coverage detected