Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/VolmitSoftware/Adapt
/ sin
Method
sin
src/main/java/com/volmit/adapt/util/M.java:233–235 ·
view source on GitHub ↗
Fast sin function @param a the number @return the sin
(float a)
Source
from the content-addressed store, hash-verified
231
* @
return
the sin
232
*/
233
public
static
float sin(float a) {
234
return
sinLookup((
int
) (a * precision + 0.5f));
235
}
236
237
/**
238
* Fast cos function
Callers
5
tan
Method · 0.95
onTick
Method · 0.45
rotateVectorCC
Method · 0.45
toVector
Method · 0.45
M
Class · 0.45
Calls
1
sinLookup
Method · 0.95
Tested by
no test coverage detected