public abstract class QuadricSurface extends SimpleSurface
Class to model an arbitrary quadric surface like cylinders, cones, and spheres.
For more information on quadric surfaces check Quadric Surfaces
The main function of this class is to provide intersection and membership verification support to all derived quadric surfaces.
Constructor and Description |
---|
QuadricSurface() |
Modifier and Type | Method and Description |
---|---|
PointND |
evaluate(double u,
double v)
Returns a point on the surface at position (u, v).
|
int |
getDimension()
Returns the external dimension of the shape.
|
java.util.ArrayList<PointND> |
getHits(AbstractCurve other) |
java.util.ArrayList<PointND> |
getHitsOnBoundingBox(AbstractCurve other) |
PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less.
|
abstract boolean |
isBounded()
Returns true if the shape is of limited space
|
boolean |
isMember(PointND point)
Determines if the given point in within the bounds of shape;
|
addAllBoundingConditions, addBoundingCondition, applyTransform, evaluate, getChangeOfAxisMatrix, getInternalDimension, getPrincipalAxis, getRasterPoints, getTransform, intersect
tessellate
getHitsOnBoundingBox_slow, getMax, getMin, getName, setName
public java.util.ArrayList<PointND> getHits(AbstractCurve other)
getHits
in class SimpleSurface
public abstract boolean isBounded()
AbstractShape
isBounded
in class AbstractShape
public int getDimension()
AbstractShape
getDimension
in class AbstractShape
public boolean isMember(PointND point)
SimpleSurface
isMember
in class SimpleSurface
public java.util.ArrayList<PointND> getHitsOnBoundingBox(AbstractCurve other)
getHitsOnBoundingBox
in class AbstractShape
public PointND[] getRasterPoints(int number)
AbstractShape
getRasterPoints
in class AbstractShape
number
- the number of pointspublic PointND evaluate(double u, double v)
AbstractSurface
evaluate
in class AbstractSurface
u
- the internal position in u dimensionv
- the internal position in v dimension