|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.geom.SphereIntersectorReflector
public class SphereIntersectorReflector
Constructor Summary | |
---|---|
SphereIntersectorReflector(Sphere s)
|
|
SphereIntersectorReflector(Vec3D o,
float r)
|
Method Summary | |
---|---|
IsectData3D |
getIntersectionData()
|
ReadonlyVec3D |
getReflectedRayPointAtDistance(float dist)
Returns the point on the reflected ray at given distance from the intersection point |
float |
getReflectionAngle()
|
Sphere |
getSphere()
|
float |
intersectRayDistance(Ray3D ray)
Calculates the distance of the vector to the given sphere in the specified direction. |
boolean |
intersectsRay(Ray3D ray)
Checks if entity intersects with the given ray. |
Ray3D |
reflectRay(Ray3D ray)
Reflects given ray on the entity's surface |
void |
setSphere(Sphere sphere)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SphereIntersectorReflector(Sphere s)
public SphereIntersectorReflector(Vec3D o, float r)
Method Detail |
---|
public IsectData3D getIntersectionData()
getIntersectionData
in interface Intersector3D
public ReadonlyVec3D getReflectedRayPointAtDistance(float dist)
Reflector3D
getReflectedRayPointAtDistance
in interface Reflector3D
dist
- distance from isect position
public float getReflectionAngle()
getReflectionAngle
in interface Reflector3D
public Sphere getSphere()
public float intersectRayDistance(Ray3D ray)
ray
- intersection ray
public boolean intersectsRay(Ray3D ray)
Intersector3D
IsectData3D
instance returned
by Intersector3D.getIntersectionData()
.
intersectsRay
in interface Intersector3D
ray
- ray to check
public Ray3D reflectRay(Ray3D ray)
Reflector3D
reflectRay
in interface Reflector3D
ray
- incident ray
public void setSphere(Sphere sphere)
sphere
- the sphere to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |