|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.geometry.AbstractShape
edu.stanford.rsl.konrad.geometry.AbstractSurface
edu.stanford.rsl.konrad.geometry.shapes.simple.SimpleSurface
edu.stanford.rsl.konrad.geometry.shapes.simple.Box
public class Box
Creates a box.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
Box()
|
|
Box(double dx,
double dy,
double dz)
|
Method Summary | |
---|---|
void |
applyTransform(Transform t)
Applies the Transform t to the object. |
PointND |
evaluate(double u,
double v)
Returns a point on the surface at position (u, v). |
PointND |
evaluate(PointND u)
Returns the point on the shape at the internal position u. |
int |
getDimension()
Returns the external dimension of the shape. |
java.util.ArrayList<PointND> |
getHits(AbstractCurve other)
|
int |
getInternalDimension()
returns the internal dimension of the shape, i.e. |
Axis |
getPrincipalAxis()
|
PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less. |
java.util.ArrayList<PointND> |
intersect(AbstractCurve other)
Returns the intersection points between the curve and the shape. |
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; |
Methods inherited from class edu.stanford.rsl.konrad.geometry.shapes.simple.SimpleSurface |
---|
addAllBoundingConditions, addBoundingCondition, getChangeOfAxisMatrix, getTransform |
Methods inherited from class edu.stanford.rsl.konrad.geometry.AbstractShape |
---|
getHitsOnBoundingBox_slow, getHitsOnBoundingBox, getMax, getMin |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public Box()
public Box(double dx, double dy, double dz)
Method Detail |
---|
public void applyTransform(Transform t)
Transformable
applyTransform
in interface Transformable
applyTransform
in class AbstractShape
t
- the transform to apply to the object.public boolean isMember(PointND point)
SimpleSurface
isMember
in class SimpleSurface
public PointND evaluate(PointND u)
AbstractShape
evaluate
in class SimpleSurface
u
- the point in the internal parameter dimension
public int getDimension()
AbstractShape
getDimension
in class AbstractShape
public int getInternalDimension()
AbstractShape
getInternalDimension
in class SimpleSurface
public java.util.ArrayList<PointND> intersect(AbstractCurve other)
AbstractShape
intersect
in class SimpleSurface
public boolean isBounded()
AbstractShape
isBounded
in class AbstractShape
public PointND[] getRasterPoints(int number)
AbstractShape
getRasterPoints
in class AbstractShape
number
- the number of points
public java.util.ArrayList<PointND> getHits(AbstractCurve other)
getHits
in class SimpleSurface
public Axis getPrincipalAxis()
getPrincipalAxis
in class SimpleSurface
public PointND evaluate(double u, double v)
AbstractSurface
evaluate
in class AbstractSurface
u
- the internal position in u dimensionv
- the internal position in v dimension
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |