Module Osg.Quat


module Quat: sig .. end
A quaternion class.

It can be used to represent an orientation in 3D space.


type t 
osg::Quat holder.
val create : float -> float -> float -> float -> t
val of_tuple : float * float * float * float -> t
val of_array : float array -> t
val to_array : t -> float array
val to_tuple : t -> float * float * float * float
val x : t -> float
val y : t -> float
val z : t -> float
val w : t -> float
val slerp : t -> float -> t -> t -> unit
Spherical Linear Interpolation. As t goes from 0 to 1, the Quat object goes from "from" to "to".
val inverse : t -> t
Multiplicative inverse method: q^(-1) = q^* / ( q.q^* ).