|
||||||||||
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 | |
---|---|
Vec3D |
getIntersectionDir(boolean normalized)
|
float |
getIntersectionDistance()
|
Vec3D |
getIntersectionPoint()
|
Vec3D |
getNormalAtIntersection()
|
Vec3D |
getReflectedRayPointAtDistance(float dist)
Returns the point on the reflected ray at given distance from the intersection point |
float |
getReflectionAngle()
|
float |
intersectRayDistance(Ray3D ray)
Calculates the distance of the vector to the given sphere in the specified direction. |
boolean |
intersectsRay(Ray3D ray)
Check if entity intersects with the given ray |
Ray3D |
reflectRay(Ray3D ray)
Reflects given ray on the entity's surface |
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 Vec3D getIntersectionDir(boolean normalized)
getIntersectionDir
in interface Intersector
normalized
- true, if a normalized version should be returned
public float getIntersectionDistance()
getIntersectionDistance
in interface Intersector
public Vec3D getIntersectionPoint()
getIntersectionPoint
in interface Intersector
public Vec3D getNormalAtIntersection()
getNormalAtIntersection
in interface Intersector
public Vec3D getReflectedRayPointAtDistance(float dist)
Reflector
getReflectedRayPointAtDistance
in interface Reflector
dist
- distance from isect position
public float getReflectionAngle()
getReflectionAngle
in interface Reflector
public float intersectRayDistance(Ray3D ray)
ray
- intersection ray
public boolean intersectsRay(Ray3D ray)
Intersector
intersectsRay
in interface Intersector
ray
- ray to check
public Ray3D reflectRay(Ray3D ray)
Reflector
reflectRay
in interface Reflector
ray
- incident ray
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |