Since 1.2Checks whether the Graphene.Box a contains the given
Graphene.Box b.
true if the box is contained in the given box
Checks whether box contains the given point.
the coordinates to check
true if the point is contained in the given box
Expands the dimensions of box by the given scalar value.
If scalar is positive, the Graphene.Box will grow; if scalar is
negative, the Graphene.Box will shrink.
a scalar value
Expands the dimensions of box to include the coordinates of the
given vector.
the coordinates of the point to include, as a Graphene.Vec3
Frees the resources allocated by graphene_box_alloc().
Computes the bounding Graphene.Sphere capable of containing the given Graphene.Box.
Retrieves the coordinates of the center of a Graphene.Box.
Retrieves the size of the box on the Z axis.
the depth of the box
Retrieves the size of the box on the Y axis.
the height of the box
Retrieves the coordinates of the maximum point of the given Graphene.Box.
Retrieves the coordinates of the minimum point of the given Graphene.Box.
Retrieves the size of the box on all three axes, and stores
it into the given size vector.
Computes the vertices of the given Graphene.Box.
Retrieves the size of the box on the X axis.
the width of the box
Initializes the given Graphene.Box with two vertices.
the initialized Graphene.Box
Initializes the given Graphene.Box with the vertices of another Graphene.Box.
the initialized Graphene.Box
Initializes the given Graphene.Box with the given array of vertices.
If n_points is 0, the returned box is initialized with
graphene_box_empty().
an array of Graphene.Point3D
the initialized Graphene.Box
Initializes the given Graphene.Box with two vertices stored inside Graphene.Vec3.
the initialized Graphene.Box
Initializes the given Graphene.Box with the given array of vertices.
If n_vectors is 0, the returned box is initialized with
graphene_box_empty().
an array of Graphene.Vec3
the initialized Graphene.Box
Intersects the two given Graphene.Box.
If the two boxes do not intersect, res will contain a degenerate box
initialized with graphene_box_empty().
true if the two boxes intersect
Unions the two given Graphene.Box.
StaticallocStaticemptyA degenerate Graphene.Box that can only be expanded.
The returned value is owned by Graphene and should not be modified or freed.
StaticinfiniteA degenerate Graphene.Box that cannot be expanded.
The returned value is owned by Graphene and should not be modified or freed.
Staticminus_A Graphene.Box with the minimum vertex set at (-1, -1, -1) and the maximum vertex set at (0, 0, 0).
The returned value is owned by Graphene and should not be modified or freed.
StaticoneA Graphene.Box with the minimum vertex set at (0, 0, 0) and the maximum vertex set at (1, 1, 1).
The returned value is owned by Graphene and should not be modified or freed.
Staticone_A Graphene.Box with the minimum vertex set at (-1, -1, -1) and the maximum vertex set at (1, 1, 1).
The returned value is owned by Graphene and should not be modified or freed.
StaticzeroA Graphene.Box with both the minimum and maximum vertices set at (0, 0, 0).
The returned value is owned by Graphene and should not be modified or freed.
A 3D box, described as the volume between a minimum and a maximum vertices.
Since
1.2