#include <Karto.h>
Public Member Functions | |
kt_double | Distance (const Vector2 &rOther) const |
const T & | GetX () const |
const T & | GetY () const |
kt_double | Length () const |
void | MakeCeil (const Vector2 &rOther) |
void | MakeFloor (const Vector2 &rOther) |
kt_bool | operator!= (const Vector2 &rOther) const |
kt_double | operator* (const Vector2 &rOther) const |
const Vector2 | operator* (T scalar) const |
void | operator*= (T scalar) |
const Vector2 | operator+ (const Vector2 &rOther) const |
void | operator+= (const Vector2 &rOther) |
const Vector2 | operator- (const Vector2 &rOther) const |
const Vector2 | operator- (T scalar) const |
void | operator-= (const Vector2 &rOther) |
const Vector2 | operator/ (T scalar) const |
void | operator/= (T scalar) |
kt_bool | operator< (const Vector2 &rOther) const |
kt_bool | operator== (const Vector2 &rOther) const |
void | SetX (const T &x) |
void | SetY (const T &y) |
kt_double | SquaredDistance (const Vector2 &rOther) const |
kt_double | SquaredLength () const |
Vector2 () | |
Vector2 (T x, T y) | |
Private Attributes | |
T | m_Values [2] |
Friends | |
std::ostream & | operator<< (std::ostream &rStream, const Vector2 &rVector) |
std::istream & | operator>> (std::istream &rStream, const Vector2 &) |
Represents a vector (x, y) in 2-dimensional real space.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
private |