package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.graphene/Ocgtk_graphene/Graphene/Wrappers/Vec2/index.html
Module Wrappers.Vec2
type t = [ `vec2 ] Gobject.objA structure capable of holding a vector with two dimensions, x and y.
The contents of the #graphene_vec2_t structure are private and should never be accessed directly.
val alloc : unit -> tCreate a new Vec2
val to_float : t -> float arrayStores the components of @v into an 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_vec2_t vectors and checks whether their values are within the given @epsilon.
Multiplies each component of the two passed vectors and places each result into the components of @res.
Compares the two given vectors and places the minimum values of each component into @res.
Compares the two given vectors and places the maximum values of each component into @res.
val length : t -> floatComputes the length of the given vector.
Initializes a #graphene_vec2_t using the given values.
This function can be called multiple times.
val get_y : t -> floatRetrieves the Y component of the #graphene_vec2_t.
val get_x : t -> floatRetrieves the X component of the #graphene_vec2_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.
Adds each component of the two passed vectors and places each result into the components of @res.
val get_type : unit -> Gobject.Type.t