|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.raytracer.engine.AbstractSurface
net.sf.j3d.threeD.raytracer.primitives.Cylinder
public class Cylinder
A Cylinder object represents a cylinder in 3d space.
| Constructor Summary | |
|---|---|
Cylinder()
Constructs a Cylinder object that represents a cylinder with a base radius of 1.0, with base at the origin, that is black. |
|
Cylinder(Vector location,
double radius)
Constructs a Cylinder object that represents a cylinder with the specified base radius, and the specified location, that is black. |
|
Cylinder(Vector location,
double radius,
RGB color)
Constructs a Cylinder object that represents a cylinder with the specified base radius, location, and color. |
|
| Method Summary | |
|---|---|
Vector |
getNormalAt(Vector point)
Returns a Vector object that represents the vector normal to the 3d surface at the point represented by the specified Vector object. |
boolean |
intersect(Ray ray)
Returns true if the ray intersects the 3d surface in real space. |
Intersection |
intersectAt(Ray ray)
Returns an Intersection object representing the points along the ray represented by the specified Ray object that intersection between the ray and the cylinder represented by this Cylinder object occurs. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cylinder()
public Cylinder(Vector location,
double radius)
public Cylinder(Vector location,
double radius,
RGB color)
| Method Detail |
|---|
public Vector getNormalAt(Vector point)
Surface
public boolean intersect(Ray ray)
Surface
public Intersection intersectAt(Ray ray)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||