module

Fttrigon

Constants

ARCTAN_TABLE = [1740967, 919879, 466945, 234379, 117304, 58666, 29335, 14668, 7334, 3667, 1833, 917, 458, 229, 115, 57, 29, 14, 7, 4, 2, 1] of Int64

Generated for FT_PI = 180L << 16, i.e. degrees.

FT_ANGLE_PI = 180_i64 << 16
FT_ANGLE_PI2 = 90_i64 << 16
FT_ANGLE_PI4 = 45_i64 << 16
TRIG_SAFE_MSB = 29

The highest bit in overflow-safe vector components.

TRIG_SCALE = 3688454934_u64

The Cordic shrink factor 0.858785336480436 * 2^32.

Class methods

hypot(x : Int64, y : Int64) : Int64

FT_Hypot (ftcalc.c).

Source
vector_length(x : Int64, y : Int64) : Int64

FT_Vector_Length (fttrigon.c).

Source