![]() |
Kale
|
#include <Vector.hpp>
Public Member Functions | |
Vector3 () | |
Vector3 (T x, T y, T z) | |
Vector3 (T v[3]) | |
Vector3 (Vector2< T > v, T z) | |
Vector3 (T x, Vector2< T > v) | |
void | operator= (T n) |
void | operator= (T v[3]) |
void | operator+= (Vector3< T > o) |
void | operator-= (Vector3< T > o) |
void | operator*= (Vector3< T > o) |
void | operator/= (Vector3< T > o) |
void | operator+= (T v) |
void | operator-= (T v) |
void | operator*= (T v) |
void | operator/= (T v) |
Vector3< T > | operator- () const |
Vector3< T > | operator+ (Vector3< T > o) const |
Vector3< T > | operator- (Vector3< T > o) const |
Vector3< T > | operator* (Vector3< T > o) const |
Vector3< T > | operator/ (Vector3< T > o) const |
Vector3< T > | operator+ (T v) const |
Vector3< T > | operator- (T v) const |
Vector3< T > | operator* (T v) const |
Vector3< T > | operator/ (T v) const |
bool | operator> (Vector3< T > o) const |
bool | operator< (Vector3< T > o) const |
bool | operator>= (Vector3< T > o) const |
bool | operator<= (Vector3< T > o) const |
template<typename A = T> | |
std::enable_if< std::is_integral< A >::value, bool >::type | operator== (Vector3< T > o) const |
template<typename A = T> | |
std::enable_if< std::is_floating_point< A >::value, bool >::type | operator== (Vector3< T > o) const |
bool | operator!= (Vector3< T > o) const |
T | dot (Vector3< T > o) const |
template<typename A = T> | |
std::enable_if< std::is_floating_point< A >::value, T >::type | magnitude () const |
template<typename A = T> | |
std::enable_if< std::is_floating_point< A >::value, float >::type | dist (Vector3< T > o) const |
Vector3< T > | clamp (T minX, T maxX, T minY, T maxY, T minZ, T maxZ) const |
Vector3< T > | clamp (Vector3< T > min, Vector3< T > max) const |
void | clampTo (T minX, T maxX, T minY, T maxY, T minZ, T maxZ) |
void | clampTo (Vector3< T > min, Vector3< T > max) |
template<typename A > | |
Vector3< A > | cast () const |
template<typename A = T> | |
std::enable_if< std::is_floating_point< A >::value, Vector3< T > >::type | unit () const |
Vector2< T > | xy () const |
Vector2< T > | xz () const |
Vector2< T > | yx () const |
Vector2< T > | yz () const |
Vector2< T > | zx () const |
Vector2< T > | zy () const |
Vector3< T > | xyz () const |
Vector3< T > | xzy () const |
Vector3< T > | yxz () const |
Vector3< T > | yzx () const |
Vector3< T > | zxy () const |
Vector3< T > | zyx () const |
Static Public Member Functions | |
static Vector3< T > | zero () |
static Vector3< T > | one () |
static Vector3< T > | right () |
static Vector3< T > | up () |
static Vector3< T > | front () |
static Vector3< T > | max () |
static Vector3< T > | min () |
static Vector3< T > | random (T min, T max) |
static Vector3< T > | random (T minX, T maxX, T minY, T maxY, T minZ, T maxZ) |
Public Attributes | |
T | x |
T | y |
T | z |
Friends | |
Vector3< T > | operator+ (float n, Vector3< T > v) |
Vector3< T > | operator- (float n, Vector3< T > v) |
Vector3< T > | operator* (float n, Vector3< T > v) |
Vector3< T > | operator/ (float n, Vector3< T > v) |
Represents a vector in a 3 dimensional space
Definition at line 186 of file Vector.hpp.
|
inline |
Definition at line 190 of file Vector.hpp.
Definition at line 191 of file Vector.hpp.
|
inline |
Definition at line 192 of file Vector.hpp.
Definition at line 194 of file Vector.hpp.
Definition at line 195 of file Vector.hpp.
Definition at line 305 of file Vector.hpp.
|
inline |
Definition at line 287 of file Vector.hpp.
|
inline |
Definition at line 290 of file Vector.hpp.
|
inline |
Definition at line 294 of file Vector.hpp.
|
inline |
Definition at line 299 of file Vector.hpp.
|
inline |
Definition at line 283 of file Vector.hpp.
Definition at line 279 of file Vector.hpp.
|
inlinestatic |
Definition at line 331 of file Vector.hpp.
|
inline |
Definition at line 280 of file Vector.hpp.
|
inlinestatic |
Definition at line 332 of file Vector.hpp.
|
inlinestatic |
Definition at line 333 of file Vector.hpp.
|
inlinestatic |
Definition at line 328 of file Vector.hpp.
|
inline |
Definition at line 277 of file Vector.hpp.
Definition at line 259 of file Vector.hpp.
Definition at line 254 of file Vector.hpp.
|
inline |
Definition at line 239 of file Vector.hpp.
|
inline |
Definition at line 218 of file Vector.hpp.
Definition at line 257 of file Vector.hpp.
Definition at line 252 of file Vector.hpp.
|
inline |
Definition at line 229 of file Vector.hpp.
|
inline |
Definition at line 208 of file Vector.hpp.
|
inline |
Definition at line 250 of file Vector.hpp.
Definition at line 258 of file Vector.hpp.
Definition at line 253 of file Vector.hpp.
|
inline |
Definition at line 234 of file Vector.hpp.
|
inline |
Definition at line 213 of file Vector.hpp.
Definition at line 260 of file Vector.hpp.
Definition at line 255 of file Vector.hpp.
|
inline |
Definition at line 244 of file Vector.hpp.
|
inline |
Definition at line 223 of file Vector.hpp.
|
inline |
Definition at line 268 of file Vector.hpp.
|
inline |
Definition at line 270 of file Vector.hpp.
|
inline |
Definition at line 197 of file Vector.hpp.
|
inline |
Definition at line 202 of file Vector.hpp.
|
inline |
Definition at line 271 of file Vector.hpp.
|
inline |
Definition at line 274 of file Vector.hpp.
|
inline |
Definition at line 267 of file Vector.hpp.
|
inline |
Definition at line 269 of file Vector.hpp.
Definition at line 335 of file Vector.hpp.
|
inlinestatic |
Definition at line 336 of file Vector.hpp.
|
inlinestatic |
Definition at line 329 of file Vector.hpp.
|
inline |
Definition at line 309 of file Vector.hpp.
|
inlinestatic |
Definition at line 330 of file Vector.hpp.
|
inline |
Definition at line 313 of file Vector.hpp.
|
inline |
Definition at line 320 of file Vector.hpp.
|
inline |
Definition at line 314 of file Vector.hpp.
|
inline |
Definition at line 321 of file Vector.hpp.
|
inline |
Definition at line 315 of file Vector.hpp.
|
inline |
Definition at line 322 of file Vector.hpp.
|
inline |
Definition at line 316 of file Vector.hpp.
|
inline |
Definition at line 323 of file Vector.hpp.
|
inlinestatic |
Definition at line 327 of file Vector.hpp.
|
inline |
Definition at line 317 of file Vector.hpp.
|
inline |
Definition at line 324 of file Vector.hpp.
|
inline |
Definition at line 318 of file Vector.hpp.
|
inline |
Definition at line 325 of file Vector.hpp.
Definition at line 264 of file Vector.hpp.
Definition at line 262 of file Vector.hpp.
Definition at line 263 of file Vector.hpp.
Definition at line 265 of file Vector.hpp.
T Kale::Vector3< T >::x |
Definition at line 188 of file Vector.hpp.
T Kale::Vector3< T >::y |
Definition at line 188 of file Vector.hpp.
T Kale::Vector3< T >::z |
Definition at line 188 of file Vector.hpp.