|
| Point () |
|
| Point (const Pointx< int > &p) |
|
| Point (const Vec2< int > &p) |
|
| Point (int x, int y) |
|
| Pointx () |
|
| Pointx (const Pointx< int > &p) |
|
| Pointx (const Vec2< int > &p) |
|
| Pointx (int x, int y) |
|
| Vec2 () |
|
| Vec2 () |
|
| Vec2 (const int &p1, const int &p2) |
|
| Vec2 (const int &p1, const int &p2) |
|
| Vec2 (const int &scalar) |
|
| Vec2 (const int &scalar) |
|
| Vec2 (const int *array_xy) |
|
| Vec2 (const int *array_xy) |
|
| Vec2 (const Vec2< int > ©)=default |
|
| Vec2 (const Vec2< int > ©)=default |
|
| Vec2 (const Vec2< OtherType > ©) |
|
| Vec2 (const Vec2< OtherType > ©) |
|
| Vec2 (const Vec2< OtherType > ©) |
|
| Vec2 (const Vec2< OtherType > ©) |
|
| Vec2 (const Vec3< int > ©) |
|
| Vec2 (const Vec3< int > ©) |
|
| Vec2 (const Vec4< int > ©) |
|
| Vec2 (const Vec4< int > ©) |
|
Angle | angle (const Vec2< int > &vector) const |
| Calculate the angle between this vector and an other vector.
|
|
Angle | angle (const Vec2< int > &vector) const |
| Calculate the angle between this vector and an other vector.
|
|
Angle | angle_line (const Vec2< int > &point) const |
| Calculate the angle of the line joining this point and other point.
|
|
Angle | angle_line (const Vec2< int > &point) const |
| Calculate the angle of the line joining this point and other point.
|
|
Angle | angle_normed (const Vec2< int > &vector) const |
| Calculate the angle between this vector and an other vector, where the vectors are unit vectors.
|
|
Angle | angle_normed (const Vec2< int > &vector) const |
| Calculate the angle between this vector and an other vector, where the vectors are unit vectors.
|
|
int | distance (const Vec2< int > &vector) const |
| Calculate the distance between this vector and an other vector.
|
|
int | distance (const Vec2< int > &vector) const |
| Calculate the distance between this vector and an other vector.
|
|
int | dot (const Vec2< int > &vector) const |
| Dot products this vector with an other vector.
|
|
int | dot (const Vec2< int > &vector) const |
| Dot products this vector with an other vector.
|
|
bool | is_equal (const Vec2< int > &other, int epsilon) const |
| Returns true if equal within the bounds of an epsilon.
|
|
bool | is_equal (const Vec2< int > &other, int epsilon) const |
| Returns true if equal within the bounds of an epsilon.
|
|
int | length () const |
| Returns the length (magnitude) of this vector.
|
|
int | length () const |
| Returns the length (magnitude) of this vector.
|
|
double | length () const |
|
double | length () const |
|
float | length () const |
|
float | length () const |
|
Vec2< int > & | normalize () |
| Normalizes this vector.
|
|
Vec2< int > & | normalize () |
| Normalizes this vector.
|
|
bool | operator!= (const Vec2< int > &vector) const |
| != operator.
|
|
bool | operator!= (const Vec2< int > &vector) const |
| != operator.
|
|
void | operator*= (const Vec2< int > &vector) |
| *= operator.
|
|
void | operator*= (const Vec2< int > &vector) |
| *= operator.
|
|
void | operator*= (int value) |
| *= operator.
|
|
void | operator*= (int value) |
| *= operator.
|
|
void | operator+= (const Vec2< int > &vector) |
| += operator.
|
|
void | operator+= (const Vec2< int > &vector) |
| += operator.
|
|
void | operator+= (int value) |
| += operator.
|
|
void | operator+= (int value) |
| += operator.
|
|
Vec2< int > | operator- () const |
|
|
|
Vec2< int > | operator- () const |
|
|
|
void | operator-= (const Vec2< int > &vector) |
| -= operator.
|
|
void | operator-= (const Vec2< int > &vector) |
| -= operator.
|
|
void | operator-= (int value) |
| -= operator.
|
|
void | operator-= (int value) |
| -= operator.
|
|
void | operator/= (const Vec2< int > &vector) |
| /= operator.
|
|
void | operator/= (const Vec2< int > &vector) |
| /= operator.
|
|
void | operator/= (int value) |
| /= operator.
|
|
void | operator/= (int value) |
| /= operator.
|
|
bool | operator< (const Vec2< int > &vector) const |
| < operator.
|
|
bool | operator< (const Vec2< int > &vector) const |
| < operator.
|
|
Vec2< int > & | operator= (const Vec2< int > &vector)=default |
| = operator.
|
|
Vec2< int > & | operator= (const Vec2< int > &vector)=default |
| = operator.
|
|
bool | operator== (const Vec2< int > &vector) const |
| == operator.
|
|
bool | operator== (const Vec2< int > &vector) const |
| == operator.
|
|
Vec2< int > & | rotate (const Vec2< int > &hotspot, const Angle &angle) |
| Rotate this vector around another point.
|
|
Vec2< int > & | rotate (const Vec2< int > &hotspot, const Angle &angle) |
| Rotate this vector around another point.
|
|
Vec2< int > & | round () |
| Rounds all components of this vector.
|
|
Vec2< int > & | round () |
| Rounds all components of this vector.
|
|
int | round_value (float value) const |
| Rounds a value for the datatype.
|
|
int | round_value (float value) const |
| Rounds a value for the datatype.
|
|
|
typedef int | datatype |
|
static Pointx< int > | calc_origin (Origin origin, const Sizex< int > &size) |
| Returns the anchor point for the origin within the dimensions of the size structure.
|
|
static Pointx< int > | calc_origin (Origin origin, const Sizex< int > &size) |
| Returns the anchor point for the origin within the dimensions of the size structure.
|
|
static int | dot (const Vec2< int > &vector_1, const Vec2< int > &vector_2) |
| Dot products a vector with an other vector.
|
|
static int | dot (const Vec2< int > &vector_1, const Vec2< int > &vector_2) |
| Dot products a vector with an other vector.
|
|
static bool | is_equal (const Vec2< int > &first, const Vec2< int > &second, int epsilon) |
| Returns true if equal within the bounds of an epsilon.
|
|
static bool | is_equal (const Vec2< int > &first, const Vec2< int > &second, int epsilon) |
| Returns true if equal within the bounds of an epsilon.
|
|
static Vec2< int > | normalize (const Vec2< int > &vector) |
| Normalizes a vector.
|
|
static Vec2< int > | normalize (const Vec2< int > &vector) |
| Normalizes a vector.
|
|
static Vec2< int > | rotate (const Vec2< int > &vector, const Vec2< int > &hotspot, const Angle &angle) |
| Rotate a vector around another point.
|
|
static Vec2< int > | rotate (const Vec2< int > &vector, const Vec2< int > &hotspot, const Angle &angle) |
| Rotate a vector around another point.
|
|
static Vec2< int > | round (const Vec2< int > &vector) |
| Rounds all components on a vector.
|
|
static Vec2< int > | round (const Vec2< int > &vector) |
| Rounds all components on a vector.
|
|
union { | |
|
Type r | |
|
Type s | |
|
Type x | |
|
}; | | |
|
union { | |
|
Type r | |
|
Type s | |
|
Type x | |
|
}; | | |
|
union { | |
|
Type g | |
|
Type t | |
|
Type y | |
|
}; | | |
|
union { | |
|
Type g | |
|
Type t | |
|
Type y | |
|
}; | | |
|
int | g |
|
int | g |
|
int | r |
|
int | r |
|
int | s |
|
int | s |
|
int | t |
|
int | t |
|
int | x |
|
int | x |
|
int | y |
|
int | y |
|
2D (x,y) point structure - Integer