Kaim::Vec3i Class Reference

Kaim::Vec3i Class Reference

#include <vec3i.h>

Class Description

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

KyInt32operator[] (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
 
Vec3ioperator*= (KyInt32 s)
 
Vec3ioperator/= (KyInt32 d)
 
Vec3ioperator+= (const Vec3i &v)
 
Vec3ioperator-= (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
 

Member Function Documentation

bool Kaim::Vec3i::operator< ( const Vec3i v) const
inline

x is compared first. ex: {1, 5, 0} < {2, 0, 0}.

KyInt32 Kaim::Vec3i::Orient2d ( const Vec3i A,
const Vec3i B 
) const
inline

CrossProduct(MA, MB) where M=*this.


The documentation for this class was generated from the following file: