Phoenix2D-Library
0.10
|
Vector2D
The Vector2D lorem Ipsum
More...
#include <Vector2D.h>
Public Member Functions | |
Vector2D () | |
Vector2D (double x, double y) | |
~Vector2D () | |
double | getXComponent () |
double | getYComponent () |
double | getMagnitude () |
double | getDirection () |
Vector2D | operator+ (Vector2D vector) |
Vector2D | operator* (double scalar) |
std::string | toString () |
VECTOR_TYPE | getType () |
Static Public Member Functions | |
static Vector2D | getEmptyVector () |
static Vector2D | getVector2DWithXAndY (double dx, double dy) |
static Vector2D | getVector2DWithMagnitudeAndDirection (double magnitude, double direction) |
Private Attributes | |
double | dx |
double | dy |
double | magnitude |
double | direction |
VECTOR_TYPE | type |
Vector2D
The Vector2D lorem Ipsum
Definition at line 45 of file Vector2D.h.
Phoenix::Vector2D::Vector2D | ( | ) |
Definition at line 29 of file Vector2D.cpp.
References direction, dx, dy, Phoenix::EMPTY_V, magnitude, and type.
Referenced by getEmptyVector(), getVector2DWithMagnitudeAndDirection(), getVector2DWithXAndY(), operator*(), and operator+().
Phoenix::Vector2D::Vector2D | ( | double | x, |
double | y | ||
) |
Definition at line 37 of file Vector2D.cpp.
References direction, dx, dy, magnitude, Phoenix::Self::PI, type, Phoenix::V2D, Phoenix::x, and Phoenix::y.
Phoenix::Vector2D::~Vector2D | ( | ) |
Definition at line 45 of file Vector2D.cpp.
double Phoenix::Vector2D::getDirection | ( | ) |
Definition at line 75 of file Vector2D.cpp.
References direction.
|
static |
Definition at line 49 of file Vector2D.cpp.
References Vector2D().
Referenced by Phoenix::Player::Player().
double Phoenix::Vector2D::getMagnitude | ( | ) |
Definition at line 71 of file Vector2D.cpp.
References magnitude.
Referenced by Phoenix::Self::localize().
VECTOR_TYPE Phoenix::Vector2D::getType | ( | ) |
Definition at line 103 of file Vector2D.cpp.
References type.
|
static |
Definition at line 53 of file Vector2D.cpp.
References Phoenix::Self::PI, Vector2D(), Phoenix::x, and Phoenix::y.
Referenced by Phoenix::Self::getVelocity(), and Phoenix::Self::localize().
|
static |
Definition at line 59 of file Vector2D.cpp.
References Vector2D().
Referenced by Phoenix::Ball::getVelocity(), and Phoenix::Player::Player().
double Phoenix::Vector2D::getXComponent | ( | ) |
Definition at line 63 of file Vector2D.cpp.
References dx.
Referenced by Phoenix::Ball::Ball(), Phoenix::Self::localize(), and Phoenix::Player::Player().
double Phoenix::Vector2D::getYComponent | ( | ) |
Definition at line 67 of file Vector2D.cpp.
References dy.
Referenced by Phoenix::Ball::Ball(), Phoenix::Self::localize(), and Phoenix::Player::Player().
Vector2D Phoenix::Vector2D::operator* | ( | double | scalar | ) |
Definition at line 85 of file Vector2D.cpp.
References direction, magnitude, Phoenix::Self::PI, Vector2D(), Phoenix::x, and Phoenix::y.
Definition at line 79 of file Vector2D.cpp.
References dx, dy, Vector2D(), Phoenix::x, and Phoenix::y.
std::string Phoenix::Vector2D::toString | ( | ) |
Definition at line 91 of file Vector2D.cpp.
References dx, dy, Phoenix::EMPTY_V, and type.
|
private |
Definition at line 49 of file Vector2D.h.
Referenced by getDirection(), operator*(), and Vector2D().
|
private |
Definition at line 46 of file Vector2D.h.
Referenced by getXComponent(), operator+(), toString(), and Vector2D().
|
private |
Definition at line 47 of file Vector2D.h.
Referenced by getYComponent(), operator+(), toString(), and Vector2D().
|
private |
Definition at line 48 of file Vector2D.h.
Referenced by getMagnitude(), operator*(), and Vector2D().
|
private |
Definition at line 50 of file Vector2D.h.
Referenced by getType(), toString(), and Vector2D().