Orient class in Global context

3D orientation, stored as 3x3 matrix.

25 members:

object x

x vector

float xx
float

orientation.x.x

float xy
float

orientation.x.y

float xz
float

orientation.x.z

object y

y vector

float yx
float

orientation.y.x

float yy
float

orientation.y.y

float yz
float

orientation.y.z

object z

z vector

float zx
float

orientation.z.x

float zy
float

orientation.z.y

float zz
float

orientation.z.z

function between2
doesn't return a value

calculate orientation between 2 Orients

function between2(Orient, Orient, float amount)
function betweenOV
doesn't return a value

calculate orientation between Orient and XYZ

function betweenOV(Orient, XYZ, float amount)
function clone
returns Orient

create new Orient object

function clone()
function localToWorld
returns member

transform coordinates

function localToWorld(XYZ point, XYZ center)
function lookAt
doesn't return a value

calculate rotation from 2 vectors

function lookAt(XYZ direction, XYZ up)
function new
returns Orient

create new Orient object

function new(float x, float y, float z)
function normalize
doesn't return a value

normalize

function normalize()
function reset
doesn't return a value

set identity matrix

function reset()
function revRotate
doesn't return a value

reverse rotate using Orient object

function revRotate(Orient)
function rotate
doesn't return a value

rotate using Orient object

function rotate(Orient)
function rotate3
doesn't return a value

rotate around 3 axes

function rotate3(float x, float y, float z)
function set
doesn't return a value

copy from another Orient object

function set(Orient)
function worldToLocal
returns member

transform coordinates

function worldToLocal(XYZ point, XYZ center)

Global context