|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.geometry.AbstractShape
public abstract class AbstractShape
Class to model any kind of curve or surface.
Example for a 3D surface.
Constructor Summary | |
---|---|
AbstractShape()
|
Method Summary | |
---|---|
abstract void |
applyTransform(Transform t)
Applies the Transform t to the object. |
abstract PointND |
evaluate(PointND u)
Returns the point on the shape at the internal position u. |
abstract int |
getDimension()
Returns the external dimension of the shape. |
java.util.ArrayList<PointND> |
getHitsOnBoundingBox_slow(AbstractCurve curve)
Evaluates the bounding box and returns true if it is hit. |
java.util.ArrayList<PointND> |
getHitsOnBoundingBox(AbstractCurve curve)
|
abstract int |
getInternalDimension()
returns the internal dimension of the shape, i.e. |
PointND |
getMax()
|
PointND |
getMin()
|
abstract PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less. |
abstract java.util.ArrayList<PointND> |
intersect(AbstractCurve other)
Returns the intersection points between the curve and the shape. |
abstract boolean |
isBounded()
Returns true if the shape is of limited space |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractShape()
Method Detail |
---|
public abstract boolean isBounded()
public java.util.ArrayList<PointND> getHitsOnBoundingBox_slow(AbstractCurve curve)
curve
- the curve
public java.util.ArrayList<PointND> getHitsOnBoundingBox(AbstractCurve curve)
public abstract PointND evaluate(PointND u)
u
- the point in the internal parameter dimension
public abstract int getDimension()
public abstract int getInternalDimension()
public abstract java.util.ArrayList<PointND> intersect(AbstractCurve other)
other
-
public abstract PointND[] getRasterPoints(int number)
number
- the number of points
public PointND getMin()
public PointND getMax()
public abstract void applyTransform(Transform t)
Transformable
applyTransform
in interface Transformable
t
- the transform to apply to the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |