A 3D box, described as the volume between a minimum and a maximum vertices.
Allocates a new <GrapheneBox>.
The contents of the returned structure are undefined.
Returned: a <GrapheneBox>.
the newly allocated <GrapheneBox> structure. Use
box:free to free the resources allocated by this
function
Checks whether the <GrapheneBox> self contains
the given <GrapheneBox> b.
Passed: a <GrapheneBox>.
Passed: a <GrapheneBox>.
Returned: a boolean.
true if the box is contained in the given box
Checks whether self contains the given point.
Passed: a <GrapheneBox>.
Passed: a <GraphenePoint3D>.
the coordinates to check
Returned: a boolean.
true if the point is contained in the given box
A degenerate <GrapheneBox> that can only be expanded.
The returned value is owned by Graphene and should not be modified or freed.
Returned: a <GrapheneBox>.
Checks whether the two given boxes are equal.
Passed: a <GrapheneBox>.
Passed: a <GrapheneBox>.
Returned: a boolean.
true if the boxes are equal
Expands the dimensions of self to include the coordinates at point.
Passed: a <GrapheneBox>.
Passed: a <GraphenePoint3D>.
the coordinates of the point to include
Passed, filled in, and returned: a <GrapheneBox>.
return location for the expanded box
Expands the dimensions of self by the given scalar value.
If scalar is positive, the <GrapheneBox> will
grow; if scalar is negative, the <GrapheneBox>
will shrink.
Passed: a <GrapheneBox>.
Passed: a real number.
a scalar value
Passed, filled in, and returned: a <GrapheneBox>.
return location for the expanded box
Expands the dimensions of self to include the coordinates of the given vector.
Passed: a <GrapheneBox>.
Passed: a <GrapheneVec3>.
the coordinates of the point to include, as a
<GrapheneVec3>
Passed, filled in, and returned: a <GrapheneBox>.
return location for the expanded box
Frees the resources allocated by box:alloc.
Passed: a <GrapheneBox>.
Computes the bounding <GrapheneSphere> capable of
containing the given <GrapheneBox>.
Passed: a <GrapheneBox>.
Passed, filled in, and returned: a
<GrapheneSphere>.
return location for the bounding sphere
Retrieves the coordinates of the center of a
<GrapheneBox>.
Passed: a <GrapheneBox>.
Passed, filled in, and returned: a
<GraphenePoint3D>.
return location for the coordinates of the center
Retrieves the size of the self on the Z axis.
Passed: a <GrapheneBox>.
Returned: a real number.
the depth of the box
Retrieves the size of the self on the Y axis.
Passed: a <GrapheneBox>.
Returned: a real number.
the height of the box
Retrieves the coordinates of the maximum point of the given
<GrapheneBox>.
Passed: a <GrapheneBox>.
Passed, filled in, and returned: a
<GraphenePoint3D>.
return location for the maximum point
Retrieves the coordinates of the minimum point of the given
<GrapheneBox>.
Passed: a <GrapheneBox>.
Passed, filled in, and returned: a
<GraphenePoint3D>.
return location for the minimum point
Retrieves the size of the box on all three axes, and stores it into the given size vector.
Passed: a <GrapheneBox>.
Passed, filled in, and returned: a <GrapheneVec3>.
return location for the size
Computes the vertices of the given <GrapheneBox>.
Passed: a <GrapheneBox>.
Passed: a list or vector, each a <GrapheneVec3>. It
is filled in, and returned: a vector, each a
<GrapheneVec3>.
return location for an array of 8 <GrapheneVec3>
Retrieves the size of the self on the X axis.
Passed: a <GrapheneBox>.
Returned: a real number.
the width of the box
A degenerate <GrapheneBox> that cannot be expanded.
The returned value is owned by Graphene and should not be modified or freed.
Returned: a <GrapheneBox>.
Initializes the given <GrapheneBox> with two vertices.
Passed: a <GrapheneBox>.
the <GrapheneBox> to initialize
Passed, or left out: a <GraphenePoint3D>, or
#f.
the coordinates of the minimum vertex
Passed, or left out: a <GraphenePoint3D>, or
#f.
the coordinates of the maximum vertex
Returned: a <GrapheneBox>.
the initialized <GrapheneBox>
Initializes the given <GrapheneBox> with the vertices
of another <GrapheneBox>.
Passed: a <GrapheneBox>.
the <GrapheneBox> to initialize
Passed: a <GrapheneBox>.
Returned: a <GrapheneBox>.
the initialized <GrapheneBox>
Initializes the given <GrapheneBox> with the given
array of vertices.
If n-points is 0, the returned box is initialized with
box-empty.
Passed: a <GrapheneBox>.
the <GrapheneBox> to initialize
Passed: a list or vector, each a
<GraphenePoint3D>.
an array of <GraphenePoint3D>
Returned: a <GrapheneBox>.
the initialized <GrapheneBox>
Not passed: guile-gi gives the length of points.
the number <GraphenePoint3D> in the points
array
Initializes the given <GrapheneBox> with two vertices
stored inside <GrapheneVec3>.
Passed: a <GrapheneBox>.
the <GrapheneBox> to initialize
Passed, or left out: a <GrapheneVec3>, or #f.
the coordinates of the minimum vertex
Passed, or left out: a <GrapheneVec3>, or #f.
the coordinates of the maximum vertex
Returned: a <GrapheneBox>.
the initialized <GrapheneBox>
Initializes the given <GrapheneBox> with the given
array of vertices.
If n-vectors is 0, the returned box is initialized with
box-empty.
Passed: a <GrapheneBox>.
the <GrapheneBox> to initialize
Passed: a list or vector, each a <GrapheneVec3>.
an array of <GrapheneVec3>
Returned: a <GrapheneBox>.
the initialized <GrapheneBox>
Not passed: guile-gi gives the length of vectors.
the number <GraphenePoint3D> in the vectors
array
Intersects the two given <GrapheneBox>.
If the two boxes do not intersect, res will contain a degenerate
box initialized with box-empty.
Passed: a <GrapheneBox>.
Passed: a <GrapheneBox>.
Passed, filled in, and returned: a <GrapheneBox>.
return location for the result
Returned: a boolean.
true if the two boxes intersect
A <GrapheneBox> 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.
Returned: a <GrapheneBox>.
A <GrapheneBox> 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.
Returned: a <GrapheneBox>.
A <GrapheneBox> 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.
Returned: a <GrapheneBox>.
Unions the two given <GrapheneBox>.
Passed: a <GrapheneBox>.
Passed: a <GrapheneBox>.
the box to union to self
Passed, filled in, and returned: a <GrapheneBox>.
return location for the result
A <GrapheneBox> 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.
Returned: a <GrapheneBox>.