2D point More...
#include <ai_vector.h>
Public Member Functions | |
AI_DEVICE constexpr | AtVector2 (float x, float y) |
AI_DEVICE constexpr | AtVector2 (const AtVector &v) |
AI_DEVICE constexpr AtVector2 | operator+ (const AtVector2 &p) const |
AI_DEVICE AtVector2 & | operator+= (const AtVector2 &p) |
AI_DEVICE constexpr AtVector2 | operator+ (float f) const |
AI_DEVICE AtVector2 & | operator+= (float f) |
AI_DEVICE constexpr AtVector2 | operator- (const AtVector2 &p) const |
AI_DEVICE AtVector2 & | operator-= (const AtVector2 &p) |
AI_DEVICE constexpr AtVector2 | operator- (float f) const |
AI_DEVICE AtVector2 & | operator-= (float f) |
AI_DEVICE constexpr AtVector2 | operator- () const |
AI_DEVICE constexpr AtVector2 | operator* (const AtVector2 &p) const |
AI_DEVICE AtVector2 | operator*= (const AtVector2 &p) |
AI_DEVICE constexpr AtVector2 | operator* (float f) const |
AI_DEVICE AtVector2 | operator*= (float f) |
AI_DEVICE constexpr AtVector2 | operator/ (const AtVector2 &p) const |
AI_DEVICE AtVector2 | operator/= (const AtVector2 &p) |
AI_DEVICE AtVector2 | operator/ (float f) const |
AI_DEVICE AtVector2 | operator/= (float f) |
AI_DEVICE constexpr bool | operator== (const AtVector2 &p) const |
AI_DEVICE constexpr bool | operator!= (const AtVector2 &p) const |
AI_DEVICE AtVector2 & | operator= (float f) |
AI_DEVICE float & | operator[] (unsigned int i) |
AI_DEVICE constexpr const float & | operator[] (unsigned int i) const |
Data Fields | |
float | x |
float | y |
Friends | |
AI_DEVICE friend constexpr AtVector2 | operator* (float f, const AtVector2 &p) |
AI_DEVICE friend constexpr AtVector2 | operator+ (float f, const AtVector2 &p) |
AI_DEVICE friend constexpr AtVector2 | operator- (float f, const AtVector2 &p) |
2D point