#include <Vector2D.h>
Public Member Functions | |
float | Length () const |
Vector2D | MakeUnitVector () const |
bool | operator!= (const Vector2D &rhs) const |
Vector2D & | operator*= (float rhs) |
Vector2D & | operator+= (const Vector2D &rhs) |
Vector2D & | operator-= (const Vector2D &rhs) |
Vector2D & | operator/= (float rhs) |
bool | operator== (const Vector2D &rhs) const |
float | SquaredLength () const |
Vector2D ()=default | |
Vector2D (float ix, float iy) | |
Public Attributes | |
float | x = 0.0f |
float | y = 0.0f |
Friends | |
Vector2D | operator* (Vector2D lhs, float rhs) |
Vector2D | operator* (float lhs, Vector2D rhs) |
Vector2D | operator+ (Vector2D lhs, const Vector2D &rhs) |
Vector2D | operator- (Vector2D lhs, const Vector2D &rhs) |
Vector2D | operator/ (Vector2D lhs, float rhs) |
Vector2D | operator/ (float lhs, Vector2D rhs) |
Definition at line 17 of file geom/Vector2D.h.
|
default |
|
inline |
Definition at line 34 of file geom/Vector2D.h.
|
inline |
Definition at line 46 of file geom/Vector2D.h.
References SquaredLength().
Referenced by MakeUnitVector().
|
inline |
Definition at line 50 of file geom/Vector2D.h.
References DEVELOPMENT_ASSERT, Length(), and Vector2D().
|
inline |
Definition at line 123 of file geom/Vector2D.h.
References x.
|
inline |
Definition at line 83 of file geom/Vector2D.h.
Definition at line 61 of file geom/Vector2D.h.
Definition at line 72 of file geom/Vector2D.h.
|
inline |
Definition at line 99 of file geom/Vector2D.h.
|
inline |
Definition at line 119 of file geom/Vector2D.h.
|
inline |
Definition at line 42 of file geom/Vector2D.h.
References y.
Referenced by Length().
Definition at line 89 of file geom/Vector2D.h.
Definition at line 94 of file geom/Vector2D.h.
Definition at line 67 of file geom/Vector2D.h.
Definition at line 78 of file geom/Vector2D.h.
Definition at line 105 of file geom/Vector2D.h.
Definition at line 110 of file geom/Vector2D.h.
float carla::geom::Vector2D::x = 0.0f |
Definition at line 24 of file geom/Vector2D.h.
Referenced by carla::road::Map::GenerateChunkedMesh(), operator!=(), operator+=(), operator-=(), operator==(), carla::road::element::GeometrySpiral::PosFromDist(), carla::road::element::GeometryPoly3::PosFromDist(), and carla::road::element::GeometryParamPoly3::PosFromDist().
float carla::geom::Vector2D::y = 0.0f |
Definition at line 26 of file geom/Vector2D.h.
Referenced by carla::road::Map::GenerateChunkedMesh(), operator+=(), operator-=(), operator==(), carla::road::element::GeometrySpiral::PosFromDist(), carla::road::element::GeometryPoly3::PosFromDist(), carla::road::element::GeometryParamPoly3::PosFromDist(), and SquaredLength().