|
supertux
|
Simple two dimensional vector. More...
#include <vector.hpp>
Public Member Functions | |
| Vector (float nx, float ny) | |
| Vector (const Vector &other) | |
| bool | operator== (const Vector &other) const |
| bool | operator!= (const Vector &other) const |
| Vector & | operator= (const Vector &other) |
| Vector | operator+ (const Vector &other) const |
| Vector | operator- (const Vector &other) const |
| Vector | operator* (float s) const |
| Vector | operator/ (float s) const |
| Vector | operator- () const |
| const Vector & | operator+= (const Vector &other) |
| const Vector & | operator-= (const Vector &other) |
| const Vector & | operator*= (float val) |
| const Vector & | operator/= (float val) |
| float | operator* (const Vector &other) const |
| Scalar product of 2 vectors. | |
| float | norm () const |
| Vector | unit () const |
| Vector | floor () const |
Public Attributes | |
| float | x |
| float | y |
Simple two dimensional vector.
1.8.12