|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.bounding.BoundingVolume
com.jme.bounding.BoundingCapsule
public class BoundingCapsule
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jme.bounding.BoundingVolume |
|---|
BoundingVolume.Type |
| Field Summary |
|---|
| Fields inherited from class com.jme.bounding.BoundingVolume |
|---|
_compVect1, _compVect2, _compVect3, center, checkPlane |
| Constructor Summary | |
|---|---|
BoundingCapsule()
|
|
BoundingCapsule(Vector3f center,
LineSegment ls,
float radius)
|
|
| Method Summary | |
|---|---|
BoundingVolume |
clone(BoundingVolume store)
clone creates a new BoundingVolume object containing the
same data as this one. |
void |
computeFromPoints(java.nio.FloatBuffer points)
computeFromPoints generates a bounding volume that
encompasses a collection of points. |
void |
computeFromTris(int[] triIndex,
TriMesh mesh,
int start,
int end)
|
void |
computeFromTris(Triangle[] tris,
int start,
int end)
|
boolean |
contains(BoundingCapsule capsule)
|
boolean |
contains(BoundingSphere sphere)
|
boolean |
contains(float sphereRadius,
Vector3f sphereCenter)
|
boolean |
contains(float radius,
Vector3f start,
Vector3f end)
|
boolean |
contains(Vector3f point)
determines if a given point is contained within this bounding volume. |
float |
distanceToEdge(Vector3f point)
Find the distance from the nearest edge of this Bounding Volume to the given point. |
LineSegment |
getLineSegment()
|
float |
getRadius()
|
BoundingVolume.Type |
getType()
getType returns the type of bounding volume this is. |
float |
getVolume()
|
boolean |
intersects(BoundingVolume bv)
determines if this bounding volume and a second given volume are intersecting. |
boolean |
intersects(Ray ray)
determines if a ray intersects this bounding volume. |
boolean |
intersectsBoundingBox(BoundingBox bb)
determines if this bounding volume and a given bounding box are intersecting. |
boolean |
intersectsCapsule(BoundingCapsule bc)
determins if this bounding volume and a given bounding capsule are intersecting. |
boolean |
intersectsOrientedBoundingBox(OrientedBoundingBox obb)
determines if this bounding volume and a given bounding box are intersecting. |
boolean |
intersectsSphere(BoundingSphere bs)
determines if this bounding volume and a given bounding sphere are intersecting. |
IntersectionRecord |
intersectsWhere(Ray ray)
determines if a ray intersects this bounding volume and if so, where. |
BoundingVolume |
merge(BoundingVolume volume)
merge combines two bounding volumes into a single bounding
volume that contains both this bounding volume and the parameter volume. |
BoundingCapsule |
mergeCapsule(BoundingCapsule capsule,
BoundingCapsule merged)
|
BoundingVolume |
mergeLocal(BoundingVolume volume)
mergeLocal combines two bounding volumes into a single
bounding volume that contains both this bounding volume and the parameter
volume. |
BoundingCapsule |
mergeSphere(BoundingSphere sphere,
BoundingCapsule merged)
|
void |
setLineSegment(LineSegment lineSegment)
|
void |
setRadius(float radius)
|
BoundingVolume |
transform(Quaternion rotate,
Vector3f translate,
Vector3f scale,
BoundingVolume store)
transform alters the location of the bounding volume by a
rotation, translation and a scalar. |
Plane.Side |
whichSide(Plane plane)
whichSide returns the side on which the bounding volume
lies on a plane. |
| Methods inherited from class com.jme.bounding.BoundingVolume |
|---|
distanceSquaredTo, distanceTo, getCenter, getCenter, getCheckPlane, getClassTag, read, setCenter, setCheckPlane, transform, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BoundingCapsule()
public BoundingCapsule(Vector3f center,
LineSegment ls,
float radius)
| Method Detail |
|---|
public BoundingVolume clone(BoundingVolume store)
BoundingVolumeclone creates a new BoundingVolume object containing the
same data as this one.
clone in class BoundingVolumestore - where to store the cloned information. if null or wrong class,
a new store is created.
public void computeFromPoints(java.nio.FloatBuffer points)
BoundingVolumecomputeFromPoints generates a bounding volume that
encompasses a collection of points.
computeFromPoints in class BoundingVolumepoints - the points to contain.
public void computeFromTris(int[] triIndex,
TriMesh mesh,
int start,
int end)
computeFromTris in class BoundingVolume
public void computeFromTris(Triangle[] tris,
int start,
int end)
computeFromTris in class BoundingVolumepublic boolean contains(Vector3f point)
BoundingVolume
contains in class BoundingVolumepoint - the point to check
public boolean contains(BoundingSphere sphere)
public boolean contains(float sphereRadius,
Vector3f sphereCenter)
public boolean contains(BoundingCapsule capsule)
public boolean contains(float radius,
Vector3f start,
Vector3f end)
public float distanceToEdge(Vector3f point)
BoundingVolume
distanceToEdge in class BoundingVolumepoint - The point to get the distance to
public BoundingVolume.Type getType()
BoundingVolume
getType in class BoundingVolumepublic boolean intersects(BoundingVolume bv)
BoundingVolume
intersects in class BoundingVolumebv - the second volume to test against.
public boolean intersects(Ray ray)
BoundingVolume
intersects in class BoundingVolumeray - the ray to test.
public boolean intersectsBoundingBox(BoundingBox bb)
BoundingVolume
intersectsBoundingBox in class BoundingVolumebb - the bounding box to test against.
public boolean intersectsCapsule(BoundingCapsule bc)
BoundingVolume
intersectsCapsule in class BoundingVolumebc - the bounding capsule to test against.
public boolean intersectsOrientedBoundingBox(OrientedBoundingBox obb)
BoundingVolume
intersectsOrientedBoundingBox in class BoundingVolumeobb - the bounding box to test against.
public boolean intersectsSphere(BoundingSphere bs)
BoundingVolume
intersectsSphere in class BoundingVolumebs - the bounding sphere to test against.
public IntersectionRecord intersectsWhere(Ray ray)
BoundingVolume
intersectsWhere in class BoundingVolumeray - the ray to test.
public BoundingVolume merge(BoundingVolume volume)
BoundingVolumemerge combines two bounding volumes into a single bounding
volume that contains both this bounding volume and the parameter volume.
merge in class BoundingVolumevolume - the volume to combine.
public BoundingCapsule mergeSphere(BoundingSphere sphere,
BoundingCapsule merged)
public BoundingCapsule mergeCapsule(BoundingCapsule capsule,
BoundingCapsule merged)
public BoundingVolume mergeLocal(BoundingVolume volume)
BoundingVolumemergeLocal combines two bounding volumes into a single
bounding volume that contains both this bounding volume and the parameter
volume. The result is stored locally.
mergeLocal in class BoundingVolumevolume - the volume to combine.
public BoundingVolume transform(Quaternion rotate,
Vector3f translate,
Vector3f scale,
BoundingVolume store)
BoundingVolumetransform alters the location of the bounding volume by a
rotation, translation and a scalar.
transform in class BoundingVolumerotate - the rotation to affect the bound.translate - the translation to affect the bound.scale - the scale to resize the bound.store - sphere to store result in
public Plane.Side whichSide(Plane plane)
BoundingVolumewhichSide returns the side on which the bounding volume
lies on a plane. Possible values are POSITIVE_SIDE, NEGATIVE_SIDE, and
NO_SIDE.
whichSide in class BoundingVolumeplane - the plane to check against this bounding volume.
public LineSegment getLineSegment()
public void setLineSegment(LineSegment lineSegment)
public float getRadius()
public void setRadius(float radius)
public float getVolume()
getVolume in class BoundingVolume
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||