|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjects.Object
objects.Quadric
public class Quadric
Field Summary |
---|
Fields inherited from class objects.Object |
---|
trans |
Constructor Summary | |
---|---|
Quadric(double a,
double b,
double c,
double d,
double e,
double f,
double g,
double h,
double j,
double k)
constructor (a*x^2+b*y^2+c*z^2+2*d*x*y+2*e*x*z+2*f*y*z+2*g*x+2*h*y+2*j*z+k<=0) |
Method Summary | |
---|---|
IntersectionInfo |
calcIntersection(Ray ray)
calculates the intersection with an ray |
void |
calculateTextureCoordinates(IntersectionInfo ri)
calculates the coordinates at ri.nextPosition |
IObject |
getCopy()
|
boolean |
isInside(Point3D p)
|
Vector3D |
normal(Point3D p)
calculate normal via gradient |
double |
q(Point3D p)
calculate the value of the quadric at point p |
void |
transform(TransformationMatrix4x4 m)
transforms the object with the matrix m |
Methods inherited from class objects.Object |
---|
assignMap, assignMaterial, getArea, getMap, getMaterial, getTransformationMatrix, move, rotate, rotateAroundX, rotateAroundY, rotateAroundZ, scale, scale, setTransformationMatrix, UniformRandomPoint |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Quadric(double a, double b, double c, double d, double e, double f, double g, double h, double j, double k)
a
- a*x^2b
- b*y^2c
- c*z^2d
- 2*d*x*ye
- 2*e*x*zf
- 2*f*y*zg
- 2*g*xh
- 2*h*yj
- 2*j*zk
- Method Detail |
---|
public double q(Point3D p)
IObject
p
- point
public boolean isInside(Point3D p)
public Vector3D normal(Point3D p)
IObject
p
- the point
public IntersectionInfo calcIntersection(Ray ray)
IObject
public void transform(TransformationMatrix4x4 m)
IObject
m
- the transformation matrixpublic void calculateTextureCoordinates(IntersectionInfo ri)
IObject
ri
- intersection informationpublic IObject getCopy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |