Circle, Cube, Cuboid, Hexahedron, Hypersphere, LineSegment, Parallelepiped, Parallelogram, Point, Polygon, PolygonGeneral, Polyhedron, PolyhedronGeneral, Polytope, Rectangle, Sphere, Square, TruncatedOctahedronpublic interface Shape
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
contains(Vector r) |
Returns true if the point described by the vector lies in or on the
enclosed region.
|
int |
D() |
Returns the spatial dimension of the shape.
|
double |
getVolume() |
Returns the (hyper-)volume of the enclosed region.
|
void |
setPosition(Vector r) |
Sets the position of the shape, which typically represents some central
point within it.
|
double getVolume()
boolean contains(Vector r)
void setPosition(Vector r)
int D()