public class Frustum
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
swigCMemOwn |
限定符和类型 | 方法和说明 |
---|---|
boolean |
circleIntersects(MapPos center,
double radius)
测试z=0平面上的圆和锥体是否相交
|
boolean |
cuboidIntersects(MapBounds cuboid)
测试一个长方体是否与锥体相交
|
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)
测试一个点是否在锥体内
|
boolean |
sphereIntersects(MapPos center,
double radius)
测试一个球是否与锥体相交
|
boolean |
squareIntersects(MapBounds square)
测试z=0平面上的矩形是否与锥体相交
|
public static long getCPtr(Frustum obj)
protected void finalize()
finalize
在类中 java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
obj
- The reference object.public int hashCode()
hashCode
在类中 java.lang.Object
public boolean pointInside(MapPos point)
point
- 被测试的点public boolean circleIntersects(MapPos center, double radius)
center
- 圆的中心radius
- 圆的半径public boolean sphereIntersects(MapPos center, double radius)
center
- 球的中心radius
- 球的半径public boolean squareIntersects(MapBounds square)
square
- 矩形public boolean cuboidIntersects(MapBounds cuboid)
cuboid
- 长方体