math¶
Numeric constants: angles, unit conversion and byte sizes.
PI and TAU are the usual circle constants, provided so a script need not
import math alongside Algan.
DEGREES and RADIANS are the two unit suffixes a script writes. Because
Algan’s native angular unit is already degrees, rotate(90 * DEGREES) and
rotate(90) are the same call – the reverse of Manim, where DEGREES
converts into the native radians. See Manim Migration Guide.
KILOBYTES, MEGABYTES and GIGABYTES are byte multipliers, used to write
memory budgets in algan.SETTINGS readably.
Module Attributes
|
Unit multiplier for an angle already written in degrees, Algan's native unit. |
|
Multiplier converting an angle written in radians to Algan's degrees. |