- [Main Page](index.md)
- [Classes](annotated.md)
- [Files](files.md)
- [Directories](dirs.md)
- [Related Pages](pages.md)
- [Class List](annotated.md)
- [Alphabetical List](classes.md)
- [Class Hierarchy](hierarchy.md)
- [Class Members](functions.md)
Vector2 Class Reference¶
#include <Vector2.h>
Public Member Functions |
|
| Vector2 () | |
| Vector2 (float xinit, float yinit) | |
| Vector2 (const Vector2 &other) | |
| Vector2 (float scalar) | |
| float | operator[] (int i) const |
| float & | operator[] (int i) |
| Vector2 & | operator= (const Vector2 &other) |
| Vector2 & | operator= (float scalar) |
| void | operator+= (const Vector2 &) |
| void | operator-= (const Vector2 &) |
| void | operator *= (const Vector2 &) |
| void | operator *= (const float) |
| void | operator/= (const Vector2 &) |
| void | operator/= (const float) |
| float | Norm () const |
| void | Negate () |
| void | Set (float px, float py) |
| void | Set (float) |
| Vector2 | Normalized () const |
| Vector2 | Absolute () const |
| Vector2 | Reciprocal () const |
| Vector2 | Orthogonal () const |
| float | Normalize () |
| float | Dot (const Vector2 &) |
Public Attributes |
|
| float | x |
| float | y |
Friends |
|
| Vector2 | operator- (const Vector2 &) |
| Vector2 | operator+ (const Vector2 &, const Vector2 &) |
| Vector2 | operator- (const Vector2 &, const Vector2 &) |
| Vector2 | operator * (const Vector2 &, const float) |
| Vector2 | operator * (const float, const Vector2 &) |
| Vector2 | operator/ (const Vector2 &, const float) |
| Vector2 | operator * (const Vector2 &, const Vector2 &) |
| float | operator| (const Vector2 &, const Vector2 &) |
| float | operator^ (const Vector2 &, const Vector2 &) |
| int | operator== (const Vector2 &, const Vector2 &) |
| int | operator!= (const Vector2 &, const Vector2 &) |
| void | Swap (Vector2 &, Vector2 &) |
| float | Dot (const Vector2 &a, const Vector2 &b) |
| Vector2 | ToVector2 (const Vector &p) |