|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--VolumeJ.VJPlane
VJPlane. Defines a 3D plane equation and methods to create and operate on it. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Constructor Summary | |
VJPlane(float[] p,
float[] q,
float[] r)
Create a new plane through 3 points p, q, r. |
|
VJPlane(float[] p,
float[] q,
float[] r,
VJMatrix m)
Create a new plane through 3 homogenuous coordinates p, q, r defined in a coordinate system, but define the plane in a transformation of that coordinate system defined by m. |
|
VJPlane(VJPlane p)
Create a new plane from another plane. |
|
VJPlane(VJPlane p,
float[] q)
Create a new plane parallel to a plane p through a point q. |
Method Summary | |
static float |
check(float x,
float y,
float z,
float a,
float b,
float c,
float d)
Return the result of a plane equation with a,b,c,d with a point x,y,z filled in. |
float |
getA()
Get the A for the plane equation Ax+By+C+D=0 of this plane |
float |
getB()
Get the B for the plane equation Ax+By+C+D=0 of this plane |
float |
getC()
Get the D for the plane equation Ax+By+C+D=0 of this plane |
float |
getD()
Get the D for the plane equation Ax+By+C+D=0 of this plane |
VJGradient |
getGradient()
Return the gradient of a plane (the normal vector) as a VJGradient. |
float |
intersectRay(float x0,
float y0)
Optimization for finding intersection of this plane with a ray running through x0, y0, 0 with derivative 0,0,1. |
void |
setD(float d)
Set the D for the plane equation Ax+By+C+D=0 of this plane |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public VJPlane(float[] p, float[] q, float[] r)
p,
- q, r three double[3] points.public VJPlane(VJPlane p)
p
- a VJPlane.public VJPlane(VJPlane p, float[] q)
p
- a VJPlane to which this plane is to be parallel.q
- a point through which this new plane should also go.public VJPlane(float[] p, float[] q, float[] r, VJMatrix m)
p,
- q, r three double[4] points.Method Detail |
public float intersectRay(float x0, float y0)
x0,
- y0 defines the origin of the ray.public static float check(float x, float y, float z, float a, float b, float c, float d)
x,y,z
- the point you want to check.a,b,c,d
- the A,B,C,D of a plane equation.public VJGradient getGradient()
public float getA()
public float getB()
public float getC()
public float getD()
public void setD(float d)
d
- double the value of Dpublic java.lang.String toString()
toString
in class java.lang.Object
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |