|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.ar.math.collision.SphericalArmature
public class SphericalArmature
A Spherical Armature. It's created from a point (sphere's center) and a radius (sphere's radius)
Constructor Summary | |
---|---|
SphericalArmature(Point3 center,
float radius)
Constructs a spherical armature from its center and its radius |
Method Summary | |
---|---|
boolean |
contains(Point3 p)
Returns true if the given point is contained by the armature. |
Point3 |
getIntersectionPoint(Ray r)
Test whether a ray intersects with the armature. |
float |
getRadius()
|
boolean |
intersects(Ray r)
Return if the given ray intersects with the armature |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SphericalArmature(Point3 center, float radius)
center
- Center pointradius
- Sphere radiusMethod Detail |
---|
public boolean contains(Point3 p)
Armature
contains
in interface Armature
p
- the point
public Point3 getIntersectionPoint(Ray r)
Armature
getIntersectionPoint
in interface Armature
r
- the ray
public float getRadius()
public boolean intersects(Ray r)
Armature
intersects
in interface Armature
r
- the ray
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |