Skip to navigation


Maths (Arithmetic): divideX

Name: divideX [Show more] Type: Variable Category: Maths (Arithmetic) Summary: Division table for calculating scale factors using 1 / |x-delta| Deep dive: Trigonometry
Context: See this variable in context in the source code References: This variable is used as follows: * GetObjPitchAngle uses divideX
.divideX FOR I%, 0, 127 IF I% = 0 B% = 255 ELSE B% = INT(0.5 + 256 / (1 + I% / 128)) ENDIF EQUB B% NEXT