public interface IBox
Modifier and Type | Method and Description |
---|---|
Box |
add(IBox other)
Expands this box to include the bounds of another box.
|
Box |
add(IBox other,
Box result)
Expands this box to include the bounds of another box, placing the result in the object
provided.
|
Box |
add(IVector3 point)
Expands this box to include the specified point.
|
Box |
add(IVector3 point,
Box result)
Expands this box to include the specified point, placing the result in the object
provided.
|
Vector3 |
center()
Returns the center of the box as a new vector.
|
Vector3 |
center(Vector3 result)
Places the location of the center of the box into the given result vector.
|
boolean |
contains(float x,
float y,
float z)
Determines whether this box contains the specified point.
|
boolean |
contains(IBox other)
Determines whether this box completely contains the specified box.
|
boolean |
contains(IVector3 point)
Determines whether this box contains the specified point.
|
float |
diagonalLength()
Returns the length of the box's diagonal (the distance from minimum to maximum extent).
|
Box |
expand(float x,
float y,
float z)
Expands the box by the specified amounts.
|
Box |
expand(float x,
float y,
float z,
Box result)
Expands the box by the specified amounts, placing the result in the object provided.
|
float |
extentDistance(IBox other)
Returns the sum of the Manhattan distances between the extents of this box and the
specified other box.
|
Box |
intersect(IBox other)
Finds the intersection between this box and another box.
|
Box |
intersect(IBox other,
Box result)
Finds the intersection between this box and another box and places the result in the
provided object.
|
boolean |
intersection(IRay3 ray,
Vector3 result)
Finds the location of the (first) intersection between the specified ray and this box.
|
boolean |
intersects(IBox other)
Determines whether this box intersects the specified other box.
|
boolean |
intersects(IRay3 ray)
Determines whether the specified ray intersects this box.
|
boolean |
isEmpty()
Determines whether the box is empty (whether any of its minima are greater than their
corresponding maxima).
|
float |
longestEdge()
Returns the length of the box's longest edge.
|
IVector3 |
maximumExtent()
Returns a reference to the box's maximum extent.
|
IVector3 |
minimumExtent()
Returns a reference to the box's minimum extent.
|
Box |
project(IMatrix4 matrix)
Projects this box.
|
Box |
project(IMatrix4 matrix,
Box result)
Projects this box, placing the result in the object provided.
|
Vector3 |
vertex(int code,
Vector3 result)
Retrieves one of the eight vertices of the box.
|
IVector3 minimumExtent()
IVector3 maximumExtent()
Vector3 center()
Vector3 center(Vector3 result)
float diagonalLength()
float longestEdge()
boolean isEmpty()
Vector3 vertex(int code, Vector3 result)
boolean contains(IVector3 point)
boolean contains(float x, float y, float z)
float extentDistance(IBox other)
boolean contains(IBox other)
boolean intersects(IBox other)
Box add(IVector3 point)
Box add(IVector3 point, Box result)
Box add(IBox other)
Box add(IBox other, Box result)
Box intersect(IBox other)
Box intersect(IBox other, Box result)
Box project(IMatrix4 matrix, Box result)
Box expand(float x, float y, float z)
Box expand(float x, float y, float z, Box result)
boolean intersects(IRay3 ray)
boolean intersection(IRay3 ray, Vector3 result)
result
- a vector to hold the location of the intersection.Copyright © 2017. All rights reserved.