Vector4
This class represents a homogeneous 3D vector.
See: Quadruple
Inherits from: Quadruple
Public Functions
FORCE_INLINE_FUNCTION Vector4 | crossProduct(const Vector4 & operand) |
Cross product. | |
FORCE_INLINE_FUNCTION | Vector4() |
Initializes a new instance of the Vector4 class. | |
FORCE_INLINE_FUNCTION | Vector4(float x, float y, float z) |
Initializes a new instance of the Vector4 class. | |
Additional inherited members
Public Functions inherited from Quadruple
FORCE_INLINE_FUNCTION float | getElement(int row) const |
Gets an element. | |
FORCE_INLINE_FUNCTION float | getW() const |
Get w coordinate. | |
FORCE_INLINE_FUNCTION float | getX() const |
Get x coordinate. | |
FORCE_INLINE_FUNCTION float | getY() const |
Get y coordinate. | |
FORCE_INLINE_FUNCTION float | getZ() const |
Get z coordinate. | |
FORCE_INLINE_FUNCTION void | setElement(int row, float value) |
Sets an element. | |
FORCE_INLINE_FUNCTION void | setW(float value) |
Sets a w coordinate. | |
FORCE_INLINE_FUNCTION void | setX(float value) |
Sets an x coordinate. | |
FORCE_INLINE_FUNCTION void | setY(float value) |
Sets a y coordinate. | |
FORCE_INLINE_FUNCTION void | setZ(float value) |
Sets a z coordinate. | |
Protected Functions inherited from Quadruple
FORCE_INLINE_FUNCTION | Quadruple() |
Initializes a new instance of the Quadruple class. | |
FORCE_INLINE_FUNCTION | Quadruple(float x, float y, float z, float w) |
Initializes a new instance of the Quadruple class. | |
Protected Attributes inherited from Quadruple
float | elements |
The elements[4]. | |
Public Functions Documentation
crossProduct
FORCE_INLINE_FUNCTION Vector4 crossProduct | ( | const Vector4 & | operand | ) | |
Cross product.
Parameters:
operand | The second operand. |
Returns:
The result of the operation.