|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.IntersectionInfo
public class IntersectionInfo
intersection info
contains all information needed for shading the surface,
where the ray intersects the object
Field Summary | |
---|---|
boolean |
hit
|
double |
nextDistance
|
Vector3D |
nextNormal
|
IObject |
nextObject
|
OrthonormalBasis |
nextONB
|
Point3D |
nextPosition
|
Point2D |
nextTextureCoords
|
Ray |
ray
|
double |
t1
|
IObject |
t1object
|
double |
t2
|
IObject |
t2object
|
Constructor Summary | |
---|---|
IntersectionInfo()
constructor |
|
IntersectionInfo(double t1_,
double t2_,
Ray ray_,
IObject object_at_t1,
IObject object_at_t2)
constructor |
|
IntersectionInfo(IntersectionInfo intersection)
copy constructor |
Method Summary | |
---|---|
void |
setNextIntersectionNormal()
sets the normal of the intersection 1 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double t1
public IObject t1object
public double t2
public IObject t2object
public Ray ray
public boolean hit
public Point3D nextPosition
public double nextDistance
public IObject nextObject
public Vector3D nextNormal
public OrthonormalBasis nextONB
public Point2D nextTextureCoords
Constructor Detail |
---|
public IntersectionInfo()
public IntersectionInfo(IntersectionInfo intersection)
intersection
- [in] intersection informationpublic IntersectionInfo(double t1_, double t2_, Ray ray_, IObject object_at_t1, IObject object_at_t2)
t1_
- [in] distance to first intersectiont2_
- [in] distance to second intersectionray_
- [in] the ray which intersects with an objectobject_at_t1
- [in] first object to intersectobject_at_t2
- [in] second object to intersectMethod Detail |
---|
public void setNextIntersectionNormal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |