|
Ultralight C++ API 1.4.0
|
#include <Ultralight/Geometry.h>
2D Vector Helper
Public Member Functions | |
| vec2 () | |
| vec2 (float x, float y) | |
| vec2 (float x) | |
| vec2 | yx () const |
| vec2 | xx () const |
| vec2 | yy () const |
| vec2 & | operator+= (const vec2 &rhs) |
| vec2 & | operator-= (const vec2 &rhs) |
| vec2 & | operator*= (const vec2 &rhs) |
| vec2 & | operator/= (const vec2 &rhs) |
| vec2 & | operator+= (float rhs) |
| vec2 & | operator-= (float rhs) |
| vec2 & | operator*= (float rhs) |
| vec2 & | operator/= (float rhs) |
Public Attributes | |
| float | x |
| float | y |
Friends | |
| vec2 | operator+ (vec2 lhs, const vec2 &rhs) |
| vec2 | operator- (vec2 lhs, const vec2 &rhs) |
| vec2 | operator* (vec2 lhs, const vec2 &rhs) |
| vec2 | operator/ (vec2 lhs, const vec2 &rhs) |
| vec2 | operator+ (vec2 lhs, float rhs) |
| vec2 | operator- (vec2 lhs, float rhs) |
| vec2 | operator* (vec2 lhs, float rhs) |
| vec2 | operator/ (vec2 lhs, float rhs) |
| bool | operator== (const vec2 &a, const vec2 &b) |
| bool | operator!= (const vec2 &a, const vec2 &b) |
| vec2 | min_ (const vec2 &a, const vec2 &b) |
| vec2 | max_ (const vec2 &a, const vec2 &b) |
| vec2 | clamp (const vec2 &x, const vec2 &minVal, const vec2 &maxVal) |
| vec2 | mix (const vec2 &a, const vec2 &b, float t) |
| float | length (const vec2 &a) |
| float | length2 (const vec2 &a) |
| float | distance (const vec2 &a, const vec2 &b) |
| float | distance2 (const vec2 &a, const vec2 &b) |
| vec2 | normalize (const vec2 &a) |
| float | dot (const vec2 &a, const vec2 &b) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
| float x |
| float y |