주요 내용으로 건너뛰기

Quadruple

touchgfx/Math3D.hpp

Base class for homogeneous vectors and points.

Inherited by: Point4, Vector4

Public Functions

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

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

floatelements
The elements[4].

Public Functions Documentation

getElement

FORCE_INLINE_FUNCTION float getElement(introw)

Gets an element.

Parameters:
rowThe row (0-3).
Returns:

The element.

getW

FORCE_INLINE_FUNCTION float getW()const

Get w coordinate.

Returns:

The w coordinate.

getX

FORCE_INLINE_FUNCTION float getX()const

Get x coordinate.

Returns:

The x coordinate.

getY

FORCE_INLINE_FUNCTION float getY()const

Get y coordinate.

Returns:

The y coordinate.

getZ

FORCE_INLINE_FUNCTION float getZ()const

Get z coordinate.

Returns:

The z coordinate.

setElement

FORCE_INLINE_FUNCTION void setElement(introw ,
floatvalue
)

Sets an element.

Parameters:
rowThe row (0-3).
valueThe new value.

setW

FORCE_INLINE_FUNCTION void setW(floatvalue)

Sets a w coordinate.

Parameters:
valueThe new value.

setX

FORCE_INLINE_FUNCTION void setX(floatvalue)

Sets an x coordinate.

Parameters:
valueThe new value.

setY

FORCE_INLINE_FUNCTION void setY(floatvalue)

Sets a y coordinate.

Parameters:
valueThe new value.

setZ

FORCE_INLINE_FUNCTION void setZ(floatvalue)

Sets a z coordinate.

Parameters:
valueThe new value.

Protected Functions Documentation

Quadruple

FORCE_INLINE_FUNCTION Quadruple()

Initializes a new instance of the Quadruple class.

Quadruple

FORCE_INLINE_FUNCTION Quadruple(floatx ,
floaty ,
floatz ,
floatw
)

Initializes a new instance of the Quadruple class.

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

Protected Attributes Documentation

elements

float elements

The elements[4].