package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.graphene/Ocgtk_graphene/Graphene/Wrappers/Vec3/index.html
Module Wrappers.Vec3
type t = [ `vec3 ] Gobject.objval alloc : unit -> tCreate a new Vec3
val to_float : t -> float arrayCopies the components of a #graphene_vec3_t into the given array.
Subtracts from each component of the first operand @a the corresponding component of the second operand @b and places each result into the components of @res.
Multiplies all components of the given vector with the given scalar @factor.
Compares the two given #graphene_vec3_t vectors and checks whether their values are within the given @epsilon.
Compares each component of the two given vectors and creates a vector that contains the minimum values.
Compares each component of the two given vectors and creates a vector that contains the maximum values.
val length : t -> floatRetrieves the length of the given vector @v.
Initializes a #graphene_vec3_t with the values of another #graphene_vec3_t.
Initializes a #graphene_vec3_t with the values from an array.
Initializes a #graphene_vec3_t using the given values.
This function can be called multiple times.
val get_z : t -> floatRetrieves the third component of the given vector @v.
val get_y : t -> floatRetrieves the second component of the given vector @v.
val get_xyzw : t -> float -> [ `vec4 ] Gobject.objConverts a #graphene_vec3_t in a #graphene_vec4_t using @w as the value of the fourth component of the resulting vector.
val get_xyz1 : t -> [ `vec4 ] Gobject.objConverts a #graphene_vec3_t in a #graphene_vec4_t using 1.0 as the value for the fourth component of the resulting vector.
val get_xyz0 : t -> [ `vec4 ] Gobject.objConverts a #graphene_vec3_t in a #graphene_vec4_t using 0.0 as the value for the fourth component of the resulting vector.
Creates a #graphene_vec3_t that contains the first two components of the given #graphene_vec3_t, and the third component set to 0.
val get_xy : t -> [ `vec2 ] Gobject.objCreates a #graphene_vec2_t that contains the first and second components of the given #graphene_vec3_t.
val get_x : t -> floatRetrieves the first component of the given vector @v.
Divides each component of the first operand @a by the corresponding component of the second operand @b, and places the results into the vector @res.