public class Frustum
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
Frustum()
Constructs an empty frustum where all corners coordinate are 0.
|
Frustum(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
boolean |
circleIntersects(MapPos center,
double radius)
Tests if a circle on the z = 0 plane inersects with the frustum.
|
boolean |
cuboidIntersects(MapBounds cuboid)
Tests if an axis aligned cuboid inersects with the frustum.
|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
static long |
getCPtr(Frustum obj) |
int |
hashCode()
Returns the hash value of this object.
|
boolean |
pointInside(MapPos point)
Tests if a point is inside with the frustum.
|
boolean |
sphereIntersects(MapPos center,
double radius)
Tests if a sphere inersects with the frustum.
|
boolean |
squareIntersects(MapBounds square)
Tests if an axis aligned square on the z = 0 plane inersects with the frustum.
|
public Frustum(long cPtr, boolean cMemoryOwn)
public Frustum()
public static long getCPtr(Frustum obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean pointInside(MapPos point)
point
- The point to be tested.public boolean circleIntersects(MapPos center, double radius)
center
- The center position of the circle.radius
- The radius of the circle.public boolean sphereIntersects(MapPos center, double radius)
center
- The center position of the sphere.radius
- The radius of the sphere.public boolean squareIntersects(MapBounds square)
square
- The axis aligned square.public boolean cuboidIntersects(MapBounds cuboid)
cuboid
- The axis aligned cuboid.