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/07/04 20:44] – [AnglesToVector] korshun | math [2019/08/26 21:12] – korshun | ||
---|---|---|---|
Line 162: | Line 162: | ||
'' | '' | ||
- | Returns x^y. Uses a simple multiplication loop. | + | Returns x<sup>y</ |
==== fpow ==== | ==== fpow ==== | ||
'' | '' | ||
- | returns x^y. Supports powers below '' | + | returns x<sup>y</ |
Line 292: | Line 292: | ||
Converts the vector' | Converts the vector' | ||
- | <note important> | + | <note important> |
=== Example usage === | === Example usage === | ||
Line 305: | Line 305: | ||
int pitch = r2; | int pitch = r2; | ||
SetActorAngle(tid, | SetActorAngle(tid, | ||
- | SetActorPitch(tid, | + | SetActorPitch(tid, |
} | } | ||
</ | </ | ||
Line 319: | Line 319: | ||
< | < | ||
- | AnglesToVector(GetActorAngle(0), | + | AnglesToVector(GetActorAngle(0), |
int dirX = r1; | int dirX = r1; | ||
int dirY = r2; | int dirY = r2; |