#include <Geometry.h>
Public Member Functions | |
Vector2< T > | GetAsVector2 () const |
const T & | GetX () const |
const T & | GetY () const |
const T & | GetZ () const |
kt_double | Length () const |
void | MakeCeil (const Vector3 &rOther) |
void | MakeFloor (const Vector3 &rOther) |
void | Normalize () |
kt_bool | operator!= (const Vector3 &rOther) const |
const Vector3 | operator* (T scalar) const |
Vector3 & | operator*= (const Vector3 &rOther) |
Vector3 & | operator*= (const T &rValue) |
const Vector3 | operator+ (const Vector3 &rOther) const |
const Vector3 | operator+ (kt_double scalar) const |
Vector3 & | operator+= (const Vector3 &rOther) |
Vector3 & | operator+= (const T &rValue) |
const Vector3 | operator- (const Vector3 &rOther) const |
const Vector3 | operator- (kt_double scalar) const |
Vector3 & | operator-= (const Vector3 &rOther) |
Vector3 & | operator-= (const T &rValue) |
Vector3 & | operator/= (const Vector3 &rOther) |
Vector3 & | operator/= (const T &rValue) |
kt_bool | operator< (const Vector3 &rOther) const |
Vector3 & | operator= (const Vector3 &rOther) |
kt_bool | operator== (const Vector3 &rOther) const |
const Vector3 | operator^ (const Vector3 &rOther) const |
void | SetX (const T &x) |
void | SetY (const T &y) |
void | SetZ (const T &z) |
kt_double | SquaredLength () const |
const String | ToString () const |
Vector3 () | |
Vector3 (T x, T y, T z) | |
Vector3 (const Vector2< T > &rVector) | |
Vector3 (const Vector3 &rOther) | |
Private Attributes | |
T | m_Values [3] |
Friends | |
KARTO_FORCEINLINE std::ostream & | operator<< (std::ostream &rStream, const Vector3 &rVector) |
Represents a 3-dimensional vector (x, y, z)
Definition at line 620 of file Geometry.h.
|
inline |
Vector at the origin
Definition at line 626 of file Geometry.h.
|
inline |
|
inline |
Constructs a 3D vector from the given 2D vector with a z-component of 0
rVector | 2D vector |
Definition at line 650 of file Geometry.h.
|
inline |
Copy constructor
Definition at line 660 of file Geometry.h.
|
inline |
Gets a 2D version of this vector (ignores z-component)
Definition at line 726 of file Geometry.h.
|
inline |
Gets the x-component of this vector
Definition at line 672 of file Geometry.h.
|
inline |
Gets the y-component of this vector
Definition at line 690 of file Geometry.h.
|
inline |
Gets the z-component of this vector
Definition at line 708 of file Geometry.h.
|
inline |
Returns the length of the vector.
Definition at line 766 of file Geometry.h.
|
inline |
|
inline |
|
inline |
Normalize the vector
Definition at line 774 of file Geometry.h.
|
inline |
Inequality operator
Definition at line 1015 of file Geometry.h.
|
inline |
Scales the vector by the given scalar
Definition at line 850 of file Geometry.h.
|
inline |
In-place component-wise vector multiplication
rOther | vector |
Definition at line 884 of file Geometry.h.
|
inline |
In-place vector-scalar multiplication
Definition at line 938 of file Geometry.h.
|
inline |
Vector addition
Definition at line 818 of file Geometry.h.
|
inline |
Vector-scalar addition
Definition at line 826 of file Geometry.h.
|
inline |
In-place vector addition
Definition at line 858 of file Geometry.h.
|
inline |
In-place component-wise scalar addition
rValue | value to add to each component |
Definition at line 912 of file Geometry.h.
|
inline |
Vector subtraction
Definition at line 834 of file Geometry.h.
|
inline |
Vector-scalar subtraction
Definition at line 842 of file Geometry.h.
|
inline |
In-place vector subtraction
Definition at line 870 of file Geometry.h.
|
inline |
In-place component-wise scalar subtraction
rValue | value to subtract from each component |
Definition at line 926 of file Geometry.h.
|
inline |
In-place component-wise vector division
rOther | vector |
Definition at line 898 of file Geometry.h.
|
inline |
In-place component-wise vector-scalar division
rValue | value to divide from each component |
Definition at line 952 of file Geometry.h.
|
inline |
Less than operator
rOther | other vector |
Definition at line 980 of file Geometry.h.
|
inline |
Assignment operator
Definition at line 806 of file Geometry.h.
|
inline |
Equality operator
Definition at line 1007 of file Geometry.h.
|
inline |
Vector cross product
rOther | vector |
Definition at line 966 of file Geometry.h.
|
inline |
Sets the x-component of this vector
x | x-component |
Definition at line 681 of file Geometry.h.
|
inline |
Sets the y-component of this vector
y | y-component |
Definition at line 699 of file Geometry.h.
|
inline |
Sets the z-component of this vector
z | z-component |
Definition at line 717 of file Geometry.h.
|
inline |
Returns the square of the length of the vector
Definition at line 757 of file Geometry.h.
|
inline |
Returns a string representation of this vector
Definition at line 791 of file Geometry.h.
|
friend |
Write vector onto output stream
Definition at line 1023 of file Geometry.h.
|
private |
Definition at line 1030 of file Geometry.h.