|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttracer.Traceable
tracer.Triangle
public class Triangle
Field Summary | |
---|---|
(package private) Vec3 |
a
|
(package private) Vec3 |
b
|
(package private) Vec3 |
c
|
(package private) float |
u1
|
(package private) float |
u2
|
(package private) float |
u3
|
(package private) float |
v1
|
(package private) float |
v2
|
(package private) float |
v3
|
Fields inherited from class tracer.Traceable |
---|
material |
Constructor Summary | |
---|---|
Triangle()
|
|
Triangle(Vec3 p1,
Vec3 p2,
Vec3 p3)
|
Method Summary | |
---|---|
boolean |
hit(Ray r)
Returns a boolean indicating whether the line segment (r.origin + t*r.direction) with 0 <= t <= 1 intersects the object. |
IntersectionInfo |
intersect(Ray r)
Returns an IntersectionInfo object indicating whether the ray r intersects this object or not. |
void |
parse(Parser p)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Vec3 a
Vec3 b
Vec3 c
float u1
float v1
float u2
float v2
float u3
float v3
Constructor Detail |
---|
public Triangle(Vec3 p1, Vec3 p2, Vec3 p3)
public Triangle()
Method Detail |
---|
public void parse(Parser p) throws java.io.IOException
java.io.IOException
public IntersectionInfo intersect(Ray r)
Traceable
intersect
in class Traceable
IntersectionInfo
public boolean hit(Ray r)
Traceable
hit
in class Traceable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |