package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.graphene/Ocgtk_graphene/Graphene/Wrappers/Vec4/index.html
Module Wrappers.Vec4
type t = [ `vec4 ] Gobject.objval alloc : unit -> tCreate a new Vec4
val to_float : t -> float arrayStores the components of the given #graphene_vec4_t into an array of floating point values.
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_vec4_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 -> floatComputes the length of the given #graphene_vec4_t.
Initializes a #graphene_vec4_t using the components of another #graphene_vec4_t.
val init_from_vec3 : t -> [ `vec3 ] Gobject.obj -> float -> tInitializes a #graphene_vec4_t using the components of a #graphene_vec3_t and the value of @w.
val init_from_vec2 : t -> [ `vec2 ] Gobject.obj -> float -> float -> tInitializes a #graphene_vec4_t using the components of a #graphene_vec2_t and the values of @z and @w.
Initializes a #graphene_vec4_t with the values inside the given array.
Initializes a #graphene_vec4_t using the given values.
This function can be called multiple times.
val get_z : t -> floatRetrieves the value of the third component of the given #graphene_vec4_t.
val get_y : t -> floatRetrieves the value of the second component of the given #graphene_vec4_t.
val get_xyz : t -> [ `vec3 ] Gobject.objCreates a #graphene_vec3_t that contains the first three components of the given #graphene_vec4_t.
val get_xy : t -> [ `vec2 ] Gobject.objCreates a #graphene_vec2_t that contains the first two components of the given #graphene_vec4_t.
val get_x : t -> floatRetrieves the value of the first component of the given #graphene_vec4_t.
val get_w : t -> floatRetrieves the value of the fourth component of the given #graphene_vec4_t.
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.