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