Skip to main content

vrquaternion

Module: Maths

A quaternion.

#include <lua_api.h>

Public Functions

TypeName
Anycopy()
(vrCopy) Returns a copy of a Vector, Matrix, Ray, Sphere, AABBox, Quaternion or Plane
numberdot(vrquaternion](../classes/vrquaternion.mdx) r)
(vrQuaternionDot) Returns the dot product of two quaternions.
Anyoperator*()
Anyoperator+()
Anyoperator-()
Anyoperator/()
Anyoperator=()

Public Attributes

TypeName
vrvec3v
xyz vector
vrvec4vec4
xyzw vector
numberw
w component
numberx
x component
numbery
y component
numberz
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