Class arel.Vector4D

The Vector4D is used representing rotations as quaternions

see Quaternion Wikipedia article

Class Summary
Constructor Attributes Constructor Name and Description
 
arel.Vector4D(_x, _y, _z, _w)

Method Summary

Class Detail

arel.Vector4D(_x, _y, _z, _w)

Author: metaio GmbH.
Parameters:
{float} _x
x Value
{float} _y
y Value
{float} _z
z Value
{float} _w
w Value

Method Detail

  • {float} getW()
    Get W coordinate
    Returns:
    {float} w
  • {float} getX()
    Get X coordinate
    Returns:
    {float} x
  • {float} getY()
    Get Y coordinate
    Returns:
    {float} y
  • {float} getZ()
    Get Z coordinate
    Returns:
    {float} z
  • setW(_w)
    Set W coordinate
    Parameters:
    {float} _w
    w Coordinate
  • setX(_x)
    Set X coordinate
    Parameters:
    {float} _x
    x Coordinate
  • setY(_y)
    Set Y coordinate
    Parameters:
    {float} _y
    y Coordinate
  • setZ(_z)
    Set Z coordinate
    Parameters:
    {float} _z
    z Coordinate