|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjects.Object
objects.HalfSpace
public class HalfSpace
Field Summary |
---|
Fields inherited from class objects.Object |
---|
trans |
Constructor Summary | |
---|---|
HalfSpace(double a_,
double b_,
double c_,
double d_)
constructor |
|
HalfSpace(double a_,
double b_,
double c_,
double d_,
double ut,
double vt)
constructor |
|
HalfSpace(double a_,
double b_,
double c_,
double d_,
double ut,
double vt,
Vector2D bias)
constructor |
Method Summary | |
---|---|
IntersectionInfo |
calcIntersection(Ray ray)
calculates the intersection with an ray |
void |
calculateTextureCoordinates(IntersectionInfo ri)
calculates the coordinates at ri.nextPosition |
double |
getArea()
|
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, 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 HalfSpace(double a_, double b_, double c_, double d_)
a_
- b_
- c_
- d_
- public HalfSpace(double a_, double b_, double c_, double d_, double ut, double vt)
a_
- b_
- c_
- d_
- ut
- the tiling for texturing in u-directionvt
- the tiling for texturing in v-directionpublic HalfSpace(double a_, double b_, double c_, double d_, double ut, double vt, Vector2D bias)
a_
- b_
- c_
- d_
- ut
- the tiling for texturing in u-directionvt
- the tiling for texturing in v-directionbias
- the bias of the tilingMethod Detail |
---|
public IntersectionInfo calcIntersection(Ray ray)
IObject
public double q(Point3D p)
IObject
p
- point
public boolean isInside(Point3D p)
public Vector3D normal(Point3D p)
IObject
p
- the point
public void transform(TransformationMatrix4x4 m)
IObject
m
- the transformation matrixpublic void calculateTextureCoordinates(IntersectionInfo ri)
IObject
ri
- intersection informationpublic double getArea()
getArea
in interface IObject
getArea
in class Object
public IObject getCopy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |