Kaim::Vec2LL Class Reference

Kaim::Vec2LL Class Reference

#include <vec2ll.h>

Class Description

2d vector using KyInt64

Functions

 Vec2LL ()
 Constructs x=0.0f, y=0.0f. More...
 
 Vec2LL (KyInt64 _x, KyInt64 _y)
 Constructs x=_x, y=_y. More...
 
 Vec2LL (KyInt64 *coords)
 Constructs x=coords[0], y=coords[1]. More...
 
void Set (KyInt64 _x, KyInt64 _y)
 
void Set (KyInt64 *coords)
 
void Clear ()
 Sets x=0 and y=0. More...
 

Operators

KyInt64 operator[] (KyInt64 idx) const
 
KyInt64operator[] (KyInt64 idx)
 
bool operator== (const Vec2LL &v) const
 
bool operator!= (const Vec2LL &v) const
 
bool operator< (const Vec2LL &v) const
 x is compared first. ex: {1, 5} < {2, 0}. More...
 
bool operator<= (const Vec2LL &v) const
 
bool operator> (const Vec2LL &v) const
 
bool operator>= (const Vec2LL &v) const
 
Vec2LLoperator*= (KyInt64 s)
 
Vec2LLoperator/= (KyInt64 d)
 
Vec2LLoperator+= (const Vec2LL &v)
 
Vec2LLoperator-= (const Vec2LL &v)
 
Vec2LL operator* (KyInt64 s) const
 
Vec2LL operator/ (KyInt64 d) const
 
Vec2LL operator+ (const Vec2LL &v) const
 
Vec2LL operator- (const Vec2LL &v) const
 
Vec2LL operator- () const
 

SquareLength

KyInt64 GetSquareLength () const
 
KyInt64 SqLength () const
 

Rotation

Vec2LL PerpCCW () const
 
Vec2LL PerpCW () const
 

Zero, Unit

static Vec2LL Zero ()
 
static Vec2LL UnitX ()
 
static Vec2LL UnitY ()
 

Data

KyInt64 x
 
KyInt64 y
 

Constructor & Destructor Documentation

Kaim::Vec2LL::Vec2LL ( )
inline

Constructs x=0.0f, y=0.0f.

Kaim::Vec2LL::Vec2LL ( KyInt64  _x,
KyInt64  _y 
)
inline

Constructs x=_x, y=_y.

Kaim::Vec2LL::Vec2LL ( KyInt64 coords)
inlineexplicit

Constructs x=coords[0], y=coords[1].

Member Function Documentation

void Kaim::Vec2LL::Clear ( )
inline

Sets x=0 and y=0.

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

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


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