MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / GetPyrScale

Function GetPyrScale

jni/stasm/asm.h:142–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140//-----------------------------------------------------------------------------
141
142static inline double GetPyrScale( // return 1 for pyr lev 0, .5 for pyr lev 1, etc.
143 int ilev) // in: pyramid level (0 is full size)
144{
145 return 1 / pow(PYR_RATIO, ilev);
146}
147
148// TODO This definition doesn't belong here.
149int EyawAsModIndex( // note: returns a negative index for left facing yaws

Callers 4

ConformShapeToMod_Method · 0.85
TraceShapeFunction · 0.85
CreatePyrFunction · 0.85
ModSearch_Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected