Skip to Content
The Alchemy Project

src/system/math_table.c

The tangent table syAtan searches.

Variables

NameDescription
const Uint16MathTanTable [258]Tangents scaled by 256: index i is tan(i * 45 / 128 degrees), so index 128 is tan(45 degrees).

Description

The tangent table syAtan searches.

Variables in detail

MathTanTable

const Uint16 MathTanTable[258]

Tangents scaled by 256: index i is tan(i * 45 / 128 degrees), so index 128 is tan(45 degrees). syAtan starts its binary search at index 127; the same as The Broken Seal's.

Referenced by syAtan().

Definition at line 8 of file math_table.c.