![]() |
Kale
|
#include <Vector.hpp>
Public Member Functions | |
template<typename U = T, typename = typename std::enable_if<std::is_same<U, float>::value>::type> | |
Vector4 (float r, float g, float b) | |
template<typename U = T, typename = typename std::enable_if<std::is_same<U, float>::value>::type> | |
Vector4 (int hex) | |
template<typename U = T, typename = typename std::enable_if<std::is_same<U, float>::value>::type> | |
Vector4 (int hex, float alpha) | |
Vector4 () | |
Vector4 (T x, T y, T z, T w) | |
Vector4 (T v[4]) | |
Vector4 (Vector2< T > v, T z, T w) | |
Vector4 (T x, Vector2< T > v, T w) | |
Vector4 (T x, T y, Vector2< T > v) | |
Vector4 (Vector3< T > v, T w) | |
Vector4 (T x, Vector3< T > v) | |
void | operator= (T n) |
void | operator= (T v[4]) |
void | operator+= (Vector4< T > o) |
void | operator-= (Vector4< T > o) |
void | operator*= (Vector4< T > o) |
void | operator/= (Vector4< T > o) |
void | operator+= (T v) |
void | operator-= (T v) |
void | operator*= (T v) |
void | operator/= (T v) |
Vector4< T > | operator- () const |
Vector4< T > | operator+ (Vector4< T > o) const |
Vector4< T > | operator- (Vector4< T > o) const |
Vector4< T > | operator* (Vector4< T > o) const |
Vector4< T > | operator/ (Vector4< T > o) const |
Vector4< T > | operator+ (T v) const |
Vector4< T > | operator- (T v) const |
Vector4< T > | operator* (T v) const |
Vector4< T > | operator/ (T v) const |
bool | operator> (Vector4< T > o) const |
bool | operator< (Vector4< T > o) const |
bool | operator>= (Vector4< T > o) const |
bool | operator<= (Vector4< T > o) const |
template<typename A = T> | |
std::enable_if< std::is_integral< A >::value, bool >::type | operator== (Vector4< T > o) const |
template<typename A = T> | |
std::enable_if< std::is_floating_point< A >::value, bool >::type | operator== (Vector4< T > o) const |
bool | operator!= (Vector4< T > o) const |
T | dot (Vector4< T > o) const |
template<typename A = T> | |
std::enable_if< std::is_floating_point< A >::value, T >::type | magnitude () const |
Vector4< T > | clamp (T minX, T maxX, T minY, T maxY, T minZ, T maxZ, T minW, T maxW) const |
Vector4< T > | clamp (Vector4< T > min, Vector4< T > max) const |
void | clampTo (T minX, T maxX, T minY, T maxY, T minZ, T maxZ, T minW, T maxW) |
void | clampTo (Vector4< T > min, Vector4< T > max) |
template<typename A > | |
Vector4< A > | cast () const |
template<typename A = T> | |
std::enable_if< std::is_floating_point< A >::value, Vector4< T > >::type | unit () const |
template<typename A = T> | |
std::enable_if< std::is_floating_point< A >::value, float >::type | dist (Vector4< T > o) const |
Vector2< T > | xy () const |
Vector2< T > | xz () const |
Vector2< T > | xw () const |
Vector2< T > | yx () const |
Vector2< T > | yz () const |
Vector2< T > | yw () const |
Vector2< T > | zx () const |
Vector2< T > | zy () const |
Vector2< T > | zw () const |
Vector2< T > | wx () const |
Vector2< T > | wy () const |
Vector2< T > | wz () const |
Vector3< T > | xyz () const |
Vector3< T > | xyw () const |
Vector3< T > | xzy () const |
Vector3< T > | xzw () const |
Vector3< T > | xwy () const |
Vector3< T > | xwz () const |
Vector3< T > | yxz () const |
Vector3< T > | yxw () const |
Vector3< T > | yzx () const |
Vector3< T > | yzw () const |
Vector3< T > | ywx () const |
Vector3< T > | ywz () const |
Vector3< T > | zxy () const |
Vector3< T > | zxw () const |
Vector3< T > | zyx () const |
Vector3< T > | zyw () const |
Vector3< T > | zwx () const |
Vector3< T > | zwy () const |
Vector3< T > | wxy () const |
Vector3< T > | wxz () const |
Vector3< T > | wyx () const |
Vector3< T > | wyz () const |
Vector3< T > | wzx () const |
Vector3< T > | wzy () const |
Vector4< T > | wzyx () const |
Vector4< T > | zwyx () const |
Vector4< T > | wyzx () const |
Vector4< T > | ywzx () const |
Vector4< T > | zywx () const |
Vector4< T > | yzwx () const |
Vector4< T > | wzxy () const |
Vector4< T > | zwxy () const |
Vector4< T > | wxzy () const |
Vector4< T > | xwzy () const |
Vector4< T > | zxwy () const |
Vector4< T > | xzwy () const |
Vector4< T > | wyxz () const |
Vector4< T > | ywxz () const |
Vector4< T > | wxyz () const |
Vector4< T > | xwyz () const |
Vector4< T > | yxwz () const |
Vector4< T > | xywz () const |
Vector4< T > | zyxw () const |
Vector4< T > | yzxw () const |
Vector4< T > | zxyw () const |
Vector4< T > | xzyw () const |
Vector4< T > | yxzw () const |
Vector4< T > | xyzw () const |
Static Public Member Functions | |
static Vector4< T > | zero () |
static Vector4< T > | one () |
static Vector4< T > | max () |
static Vector4< T > | min () |
static Vector4< T > | random (T min, T max) |
static Vector4< T > | random (T minX, T maxX, T minY, T maxY, T minZ, T maxZ, T minW, T maxW) |
Public Attributes | |
T | x |
T | y |
T | z |
T | w |
Friends | |
Vector4< T > | operator+ (float n, Vector4< T > v) |
Vector4< T > | operator- (float n, Vector4< T > v) |
Vector4< T > | operator* (float n, Vector4< T > v) |
Vector4< T > | operator/ (float n, Vector4< T > v) |
Represents a vector in a 3 dimensional space
Definition at line 345 of file Vector.hpp.
|
inline |
Definition at line 350 of file Vector.hpp.
|
inline |
Definition at line 353 of file Vector.hpp.
|
inline |
Definition at line 360 of file Vector.hpp.
|
inline |
Definition at line 366 of file Vector.hpp.
Definition at line 367 of file Vector.hpp.
|
inline |
Definition at line 368 of file Vector.hpp.
Definition at line 370 of file Vector.hpp.
Definition at line 371 of file Vector.hpp.
Definition at line 372 of file Vector.hpp.
Definition at line 374 of file Vector.hpp.
Definition at line 375 of file Vector.hpp.
Definition at line 496 of file Vector.hpp.
|
inline |
Definition at line 474 of file Vector.hpp.
|
inline |
Definition at line 478 of file Vector.hpp.
|
inline |
Definition at line 483 of file Vector.hpp.
|
inline |
Definition at line 489 of file Vector.hpp.
|
inline |
Definition at line 503 of file Vector.hpp.
Definition at line 469 of file Vector.hpp.
|
inline |
Definition at line 470 of file Vector.hpp.
|
inlinestatic |
Definition at line 572 of file Vector.hpp.
|
inlinestatic |
Definition at line 575 of file Vector.hpp.
|
inlinestatic |
Definition at line 571 of file Vector.hpp.
|
inline |
Definition at line 467 of file Vector.hpp.
Definition at line 449 of file Vector.hpp.
Definition at line 444 of file Vector.hpp.
|
inline |
Definition at line 427 of file Vector.hpp.
|
inline |
Definition at line 402 of file Vector.hpp.
Definition at line 447 of file Vector.hpp.
Definition at line 442 of file Vector.hpp.
|
inline |
Definition at line 415 of file Vector.hpp.
|
inline |
Definition at line 390 of file Vector.hpp.
|
inline |
Definition at line 440 of file Vector.hpp.
Definition at line 448 of file Vector.hpp.
Definition at line 443 of file Vector.hpp.
|
inline |
Definition at line 421 of file Vector.hpp.
|
inline |
Definition at line 396 of file Vector.hpp.
Definition at line 450 of file Vector.hpp.
Definition at line 445 of file Vector.hpp.
|
inline |
Definition at line 433 of file Vector.hpp.
|
inline |
Definition at line 408 of file Vector.hpp.
|
inline |
Definition at line 458 of file Vector.hpp.
|
inline |
Definition at line 460 of file Vector.hpp.
|
inline |
Definition at line 377 of file Vector.hpp.
|
inline |
Definition at line 383 of file Vector.hpp.
|
inline |
Definition at line 461 of file Vector.hpp.
|
inline |
Definition at line 464 of file Vector.hpp.
|
inline |
Definition at line 457 of file Vector.hpp.
|
inline |
Definition at line 459 of file Vector.hpp.
Definition at line 578 of file Vector.hpp.
|
inlinestatic |
Definition at line 581 of file Vector.hpp.
|
inline |
Definition at line 500 of file Vector.hpp.
|
inline |
Definition at line 516 of file Vector.hpp.
|
inline |
Definition at line 538 of file Vector.hpp.
|
inline |
Definition at line 559 of file Vector.hpp.
|
inline |
Definition at line 539 of file Vector.hpp.
|
inline |
Definition at line 553 of file Vector.hpp.
|
inline |
Definition at line 517 of file Vector.hpp.
|
inline |
Definition at line 540 of file Vector.hpp.
|
inline |
Definition at line 557 of file Vector.hpp.
|
inline |
Definition at line 541 of file Vector.hpp.
|
inline |
Definition at line 547 of file Vector.hpp.
|
inline |
Definition at line 518 of file Vector.hpp.
|
inline |
Definition at line 542 of file Vector.hpp.
|
inline |
Definition at line 551 of file Vector.hpp.
|
inline |
Definition at line 543 of file Vector.hpp.
|
inline |
Definition at line 545 of file Vector.hpp.
|
inline |
Definition at line 509 of file Vector.hpp.
|
inline |
Definition at line 524 of file Vector.hpp.
|
inline |
Definition at line 560 of file Vector.hpp.
|
inline |
Definition at line 525 of file Vector.hpp.
|
inline |
Definition at line 554 of file Vector.hpp.
|
inline |
Definition at line 507 of file Vector.hpp.
|
inline |
Definition at line 521 of file Vector.hpp.
|
inline |
Definition at line 562 of file Vector.hpp.
|
inline |
Definition at line 520 of file Vector.hpp.
|
inline |
Definition at line 568 of file Vector.hpp.
|
inline |
Definition at line 508 of file Vector.hpp.
|
inline |
Definition at line 523 of file Vector.hpp.
|
inline |
Definition at line 556 of file Vector.hpp.
|
inline |
Definition at line 522 of file Vector.hpp.
|
inline |
Definition at line 566 of file Vector.hpp.
|
inline |
Definition at line 512 of file Vector.hpp.
|
inline |
Definition at line 530 of file Vector.hpp.
|
inline |
Definition at line 558 of file Vector.hpp.
|
inline |
Definition at line 531 of file Vector.hpp.
|
inline |
Definition at line 548 of file Vector.hpp.
|
inline |
Definition at line 510 of file Vector.hpp.
|
inline |
Definition at line 527 of file Vector.hpp.
|
inline |
Definition at line 561 of file Vector.hpp.
|
inline |
Definition at line 526 of file Vector.hpp.
|
inline |
Definition at line 567 of file Vector.hpp.
|
inline |
Definition at line 511 of file Vector.hpp.
|
inline |
Definition at line 529 of file Vector.hpp.
|
inline |
Definition at line 550 of file Vector.hpp.
|
inline |
Definition at line 528 of file Vector.hpp.
|
inline |
Definition at line 564 of file Vector.hpp.
|
inlinestatic |
Definition at line 570 of file Vector.hpp.
|
inline |
Definition at line 515 of file Vector.hpp.
|
inline |
Definition at line 536 of file Vector.hpp.
|
inline |
Definition at line 552 of file Vector.hpp.
|
inline |
Definition at line 537 of file Vector.hpp.
|
inline |
Definition at line 546 of file Vector.hpp.
|
inline |
Definition at line 513 of file Vector.hpp.
|
inline |
Definition at line 533 of file Vector.hpp.
|
inline |
Definition at line 555 of file Vector.hpp.
|
inline |
Definition at line 532 of file Vector.hpp.
|
inline |
Definition at line 565 of file Vector.hpp.
|
inline |
Definition at line 514 of file Vector.hpp.
|
inline |
Definition at line 535 of file Vector.hpp.
|
inline |
Definition at line 549 of file Vector.hpp.
|
inline |
Definition at line 534 of file Vector.hpp.
|
inline |
Definition at line 563 of file Vector.hpp.
Definition at line 454 of file Vector.hpp.
Definition at line 452 of file Vector.hpp.
Definition at line 453 of file Vector.hpp.
Definition at line 455 of file Vector.hpp.
T Kale::Vector4< T >::w |
Definition at line 347 of file Vector.hpp.
T Kale::Vector4< T >::x |
Definition at line 347 of file Vector.hpp.
T Kale::Vector4< T >::y |
Definition at line 347 of file Vector.hpp.
T Kale::Vector4< T >::z |
Definition at line 347 of file Vector.hpp.