Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DescentDevelopers/Descent3
/ vm_SinCos
Function
vm_SinCos
vecmat/vector.cpp:669–674 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
667
}
668
669
void vm_SinCos(uint16_t a, float *s, float *c) {
670
if (s)
671
*s = FixSin(a);
672
if (c)
673
*c = FixCos(a);
674
}
675
676
#define EPSILON 0.00001
677
#define IS_ZERO(x) (fabs(x) < EPSILON)
Callers
1
getdist
Function · 0.50
Calls
2
FixSin
Function · 0.50
FixCos
Function · 0.50
Tested by
no test coverage detected