#include <vector2d.h>
Public Member Functions | |
| Vector2D () | |
| Vector2D (float _x, float _y) | |
| void | SetDirScale (int dir, float scale) |
| float | GetX () |
| float | GetY () |
| void | SetXY (float _x, float _y) |
| int | GetTileX () |
| int | GetTileY () |
| void | GetCoords (float *_x, float *_y) |
| void | GetTileCoords (int *_x, int *_y) |
| void | Normalize () |
| float | Length () |
| float | Distance (Vector2D v) |
| void | Print () |
| Vector2D | Add (Vector2D v) |
| Vector2D | Mul (float a) |
| void | AddInPlace (Vector2D) |
| void | MulInPlace (float) |
| float | Cos () |
| float | Sin () |
| Vector2D & | operator= (const Vector2D &v) |
Private Attributes | |
| float | x |
| float | y |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
X / Length |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Y / Length |
|
|
|
|
|
|
1.3-rc3