#include <vec3i.h>
3d vector using 32bits integer
Init | |
Vec3i () | |
Vec3i (KyInt32 _x, KyInt32 _y, KyInt32 _z) | |
Vec3i (KyInt32 *coords) | |
void | Set (KyInt32 _x, KyInt32 _y, KyInt32 _z) |
void | Set (const Vec2i &v, KyInt32 _z) |
void | Set (KyInt32 *coords) |
Operators | |
KyInt32 & | operator[] (KyInt32 i) |
KyInt32 | operator[] (KyInt32 i) const |
bool | operator== (const Vec3i &v) const |
bool | operator!= (const Vec3i &v) const |
bool | operator< (const Vec3i &v) const |
x is compared first. ex: {1, 5, 0} < {2, 0, 0}. More... | |
bool | operator> (const Vec3i &v) const |
bool | operator<= (const Vec3i &v) const |
bool | operator>= (const Vec3i &v) const |
Vec3i & | operator*= (KyInt32 s) |
Vec3i & | operator/= (KyInt32 d) |
Vec3i & | operator+= (const Vec3i &v) |
Vec3i & | operator-= (const Vec3i &v) |
Vec3i | operator* (KyInt32 s) const |
Vec3i | operator/ (KyInt32 d) const |
Vec3i | operator+ (const Vec3i &v) const |
Vec3i | operator- (const Vec3i &v) const |
Vec3i | operator- () const |
SquareLength | |
KyInt32 | GetSquareLength () const |
Side | |
KyInt32 | Orient2d (const Vec3i &A, const Vec3i &B) const |
CrossProduct(MA, MB) where M=*this. More... | |
bool | IsOnLeftSide (const Vec3i &A, const Vec3i &B) const |
bool | IsStrictlyOnLeftSide (const Vec3i &A, const Vec3i &B) const |
Unit | |
static Vec3i | UnitX () |
static Vec3i | UnitY () |
static Vec3i | UnitZ () |
Data | |
KyInt32 | x |
KyInt32 | y |
KyInt32 | z |
|
inline |
x is compared first. ex: {1, 5, 0} < {2, 0, 0}.
CrossProduct(MA, MB) where M=*this.