|
||||||||||
| 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.Plane
public class Plane
A Plane object represents an plane in 3d space.
| Field Summary | |
|---|---|
static int |
XY
Integer code for XY plane. |
static int |
XZ
Integer code for XZ plane. |
static int |
YZ
Integer code for YZ plane. |
| Constructor Summary | |
|---|---|
Plane()
Constructs a Plane object that represents an XY plane that is black. |
|
Plane(int type)
Constructs a Plane object that represents a Plane with the orientation specified by an integer code. |
|
Plane(int type,
RGB color)
Constructs a Plane object that represents an XY plane with the specified color. |
|
| Method Summary | |
|---|---|
Vector |
getNormalAt(Vector point)
Returns a Vector object that represents the vector normal to this plane at the point represented by the specified Vector object. |
double[][] |
getParticleVertices()
|
int |
getType()
Returns the integer code for the orientation of this Plane object. |
boolean |
intersect(Ray ray)
Returns true if the ray represented by the specified Ray object intersects the plane represented by this Plane object 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 plane represented by this Plane object occurs. |
void |
setType(int type)
Sets the orientation of this Plane object to the orientation specified by the integer type code. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int XY
public static final int XZ
public static final int YZ
| Constructor Detail |
|---|
public Plane()
public Plane(int type)
public Plane(int type,
RGB color)
| Method Detail |
|---|
public void setType(int type)
IllegalArgumentException - If the specified type code is not valid.public int getType()
public Vector getNormalAt(Vector point)
getNormalAt in interface Surfacepublic boolean intersect(Ray ray)
intersect in interface Surfacepublic Intersection intersectAt(Ray ray)
intersectAt in interface Surfacepublic double[][] getParticleVertices()
getParticleVertices in interface ParticleGroupParticleGroup.getParticleVertices()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||