vrquaternion
Module: Maths
A quaternion.
#include <lua_api.h>
Public Functions
Type | Name |
---|---|
Any | copy() (vrCopy) Returns a copy of a Vector, Matrix, Ray, Sphere, AABBox, Quaternion or Plane |
number | dot(vrquaternion](../classes/vrquaternion.mdx) r) (vrQuaternionDot) Returns the dot product of two quaternions. |
Any | operator*() |
Any | operator+() |
Any | operator-() |
Any | operator/() |
Any | operator=() |
Public Attributes
Type | Name |
---|---|
vrvec3 | v xyz vector |
vrvec4 | vec4 xyzw vector |
number | w w component |
number | x x component |
number | y y component |
number | z z component |
Public Functions Documentation
copy
Any copy()
(vrCopy) Returns a copy of a Vector, Matrix, Ray, Sphere, AABBox, Quaternion or Plane
dot
number dot(
vrquaternion r
)
(vrQuaternionDot) Returns the dot product of two quaternions.
operator*
Any operator*()
operator+
Any operator+()
operator-
Any operator-()
operator/
Any operator/()
operator=
Any operator=()
Public Attributes Documentation
v
vrvec3 v;
xyz vector
vec4
vrvec4 vec4;
xyzw vector
w
number w;
w component
x
number x;
x component
y
number y;
y component
z
number z;
z component