|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjects.Object
objects.Quadric
objects.UnitSphere
public class UnitSphere
a sphere with radius 1
Field Summary |
---|
Fields inherited from class objects.Object |
---|
trans |
Constructor Summary | |
---|---|
UnitSphere()
constructor |
Method Summary | |
---|---|
double |
getArea()
|
IObject |
getCopy()
|
void |
transform(TransformationMatrix4x4 trans)
transforms the object with the matrix m |
void |
UniformRandomPoint(Point3D point,
Vector3D normal,
Point3D prand)
creates a random point on the surface of the object |
Methods inherited from class objects.Quadric |
---|
calcIntersection, calculateTextureCoordinates, isInside, normal, q |
Methods inherited from class objects.Object |
---|
assignMap, assignMaterial, getMap, getMaterial, getTransformationMatrix, move, rotate, rotateAroundX, rotateAroundY, rotateAroundZ, scale, scale, setTransformationMatrix |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnitSphere()
Method Detail |
---|
public void transform(TransformationMatrix4x4 trans)
IObject
transform
in interface IObject
transform
in class Quadric
trans
- the transformation matrixpublic void UniformRandomPoint(Point3D point, Vector3D normal, Point3D prand)
IObject
UniformRandomPoint
in interface IObject
UniformRandomPoint
in class Object
point
- [out] point on the surfacenormal
- [out] normal at the point on the surfaceprand
- [in] prand variables used in point generationpublic double getArea()
getArea
in interface IObject
getArea
in class Object
public IObject getCopy()
getCopy
in interface IObject
getCopy
in class Quadric
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |