Menu

Apophysis Code

Per Alexandersson

Apophysis code

Some variables, function calls, and notions in Apophysis might be hard to decipher. Here is a partial key:


FAngle = atan2(fpin.x, fpin.y)

This is unintuitive, this is NOT the polar angle, but something else.

Apophysis seems to assume fpin.y = -fpin.y...

This below are definitions of various constants used in apo code.

M_E         2.7182818284590452354
M_LOG2E     1.4426950408889634074
M_LOG10E    0.43429448190325182765
M_LN2       0.69314718055994530942
M_LN10      2.30258509299404568402
M_PI        3.14159265358979323846
M_PI_2      1.57079632679489661923
M_PI_4      0.78539816339744830962
M_1_PI      0.31830988618379067154
M_2_PI      0.63661977236758134308
M_2_SQRTPI  1.12837916709551257390
M_SQRT2     1.41421356237309504880
M_SQRT1_2   0.70710678118654752440




M_2PI       6.283185307179586476925286766559
M_3PI_4     2.3561944901923449288469825374596
M_SQRT3     1.7320508075688772935274463415059
M_SQRT3_2       0.86602540378443864676372317075249
M_SQRT5     2.2360679774997896964091736687313
M_PHI       1.61803398874989484820458683436563
M_1_2PI     0.15915494309189533576888376337251

MongoDB Logo MongoDB