#include <vec2ll.h>
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 |
KyInt64 & | operator[] (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 |
Vec2LL & | operator*= (KyInt64 s) |
Vec2LL & | operator/= (KyInt64 d) |
Vec2LL & | operator+= (const Vec2LL &v) |
Vec2LL & | operator-= (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 |
|
inline |
Constructs x=0.0f, y=0.0f.
|
inlineexplicit |
Constructs x=coords[0], y=coords[1].
|
inline |
Sets x=0 and y=0.
|
inline |
x is compared first. ex: {1, 5} < {2, 0}.