This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
math [2019/04/20 19:57] – [e] korshun | math [2019/07/04 20:43] – [AnglesToVector] korshun | ||
---|---|---|---|
Line 64: | Line 64: | ||
Precalculated to maximum precision. The precalculated logarithms are used to implement '' | Precalculated to maximum precision. The precalculated logarithms are used to implement '' | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
===== Generic math functions ===== | ===== Generic math functions ===== | ||
Line 315: | Line 315: | ||
<note important> | <note important> | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | < | ||
+ | AnglesToVector(GetActorAngle(0), | ||
+ | int dirX = r1; | ||
+ | int dirY = r2; | ||
+ | int dirZ = r3; | ||
+ | </ | ||
+ | |||
+ | |||
===== Logarithms ===== | ===== Logarithms ===== | ||
Line 347: | Line 358: | ||
<note important> | <note important> | ||
- | <note important> | + | <note important> |
Note that even the integer version has a fixed-point base. | Note that even the integer version has a fixed-point base. | ||