Skip to main content
Version: 4.16

Vector4

This class represents a homogeneous 3D vector.

See: Quadruple

Inherits from: Quadruple

Public Functions#

FORCE_INLINE_FUNCTION Vector4crossProduct(const Vector4 & operand)
Cross product.
FORCE_INLINE_FUNCTIONVector4()
Initializes a new instance of the Vector4 class.
FORCE_INLINE_FUNCTIONVector4(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 floatgetElement(int row) const
Gets an element.
FORCE_INLINE_FUNCTION floatgetW() const
Get w coordinate.
FORCE_INLINE_FUNCTION floatgetX() const
Get x coordinate.
FORCE_INLINE_FUNCTION floatgetY() const
Get y coordinate.
FORCE_INLINE_FUNCTION floatgetZ() const
Get z coordinate.
FORCE_INLINE_FUNCTION voidsetElement(int row, float value)
Sets an element.
FORCE_INLINE_FUNCTION voidsetW(float value)
Sets a w coordinate.
FORCE_INLINE_FUNCTION voidsetX(float value)
Sets an x coordinate.
FORCE_INLINE_FUNCTION voidsetY(float value)
Sets a y coordinate.
FORCE_INLINE_FUNCTION voidsetZ(float value)
Sets a z coordinate.

Protected Functions inherited from Quadruple#

FORCE_INLINE_FUNCTIONQuadruple()
Initializes a new instance of the Quadruple class.
FORCE_INLINE_FUNCTIONQuadruple(float x, float y, float z, float w)
Initializes a new instance of the Quadruple class.

Protected Attributes inherited from Quadruple#

floatelements
The elements[4].

Public Functions Documentation#

crossProduct#

FORCE_INLINE_FUNCTION Vector4 crossProduct(const Vector4 &operand)

Cross product.

Parameters:
operandThe second operand.
Returns:

The result of the operation.

Vector4#

FORCE_INLINE_FUNCTION Vector4()

Initializes a new instance of the Vector4 class.

Vector4#

FORCE_INLINE_FUNCTION Vector4(floatx ,
floaty ,
floatz
)

Initializes a new instance of the Vector4 class.

Parameters:
xThe x coordinate.
yThe y coordinate.
zThe z coordinate.