package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.graphene/Ocgtk_graphene/Graphene/Wrappers/Quaternion/index.html
Module Wrappers.Quaternion
type t = [ `quaternion ] Gobject.objval alloc : unit -> tCreate a new Quaternion
val to_vec4 : t -> [ `vec4 ] Gobject.objCopies the components of a #graphene_quaternion_t into a #graphene_vec4_t.
val to_radians : t -> float * float * floatConverts a #graphene_quaternion_t to its corresponding rotations on the Euler angles(http://en.wikipedia.org/wiki/Euler_angles) on each axis.
val to_matrix : t -> [ `matrix ] Gobject.objConverts a quaternion into a transformation matrix expressing the rotation defined by the #graphene_quaternion_t.
val to_angles : t -> float * float * floatConverts a #graphene_quaternion_t to its corresponding rotations on the Euler angles(http://en.wikipedia.org/wiki/Euler_angles) on each axis.
val to_angle_vec3 : t -> float * [ `vec3 ] Gobject.objConverts a quaternion into an @angle, @axis pair.
Interpolates between the two given quaternions using a spherical linear interpolation, or SLERP(http://en.wikipedia.org/wiki/Slerp), using the given interpolation @factor.
Scales all the elements of a #graphene_quaternion_t @q using the given scalar factor.
val init_from_vec4 : t -> [ `vec4 ] Gobject.obj -> tInitializes a #graphene_quaternion_t with the values from @src.
Initializes a #graphene_quaternion_t using the values of the Euler angles(http://en.wikipedia.org/wiki/Euler_angles) on each axis.
See also: graphene_quaternion_init_from_euler()
Initializes a #graphene_quaternion_t with the values from @src.
val init_from_matrix : t -> [ `matrix ] Gobject.obj -> tInitializes a #graphene_quaternion_t using the rotation components of a transformation matrix.
val init_from_euler : t -> [ `euler ] Gobject.obj -> tInitializes a #graphene_quaternion_t using the given #graphene_euler_t.
Initializes a #graphene_quaternion_t using the values of the Euler angles(http://en.wikipedia.org/wiki/Euler_angles) on each axis.
See also: graphene_quaternion_init_from_euler()
val init_from_angle_vec3 : t -> float -> [ `vec3 ] Gobject.obj -> tInitializes a #graphene_quaternion_t using an @angle on a specific @axis.
Initializes a #graphene_quaternion_t using the given four values.