package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.graphene/Ocgtk_graphene/Graphene/Wrappers/Point3_d/index.html
Module Wrappers.Point3_d
type t = [ `point3_d ] Gobject.objA point with three components: X, Y, and Z.
val alloc : unit -> tCreate a new Point3D
val to_vec3 : t -> [ `vec3 ] Gobject.objStores the coordinates of a #graphene_point3d_t into a #graphene_vec3_t.
Scales the coordinates of the given #graphene_point3d_t by the given @factor.
val normalize_viewport : t -> [ `rect ] Gobject.obj -> float -> float -> tNormalizes the coordinates of a #graphene_point3d_t using the given viewport and clipping planes.
The coordinates of the resulting #graphene_point3d_t will be in the -1, 1 range.
Computes the normalization of the vector represented by the coordinates of the given #graphene_point3d_t.
Checks whether the two points are near each other, within an @epsilon factor.
val length : t -> floatComputes the length of the vector represented by the coordinates of the given #graphene_point3d_t.
Linearly interpolates each component of @a and @b using the provided @factor, and places the result in @res.
val init_from_vec3 : t -> [ `vec3 ] Gobject.obj -> tInitializes a #graphene_point3d_t using the components of a #graphene_vec3_t.
Initializes a #graphene_point3d_t using the coordinates of another #graphene_point3d_t.
Initializes a #graphene_point3d_t with the given coordinates.
val distance : t -> t -> float * [ `vec3 ] Gobject.objComputes the distance between the two given #graphene_point3d_t.
val get_type : unit -> Gobject.Type.t