MCPcopy 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
669void 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

getdistFunction · 0.50

Calls 2

FixSinFunction · 0.50
FixCosFunction · 0.50

Tested by

no test coverage detected