public final class Parallelepiped extends ConvexVolume
Modifier and Type | Class and Description |
---|---|
static class |
Parallelepiped.Builder
Class designed to aid construction of
Parallelepiped instances. |
AbstractConvexHyperplaneBoundedRegion.ConvexRegionBoundaryBuilder<P extends Point<P>,S extends HyperplaneConvexSubset<P>>
Modifier and Type | Method and Description |
---|---|
static Parallelepiped |
axisAligned(Vector3D a,
Vector3D b,
Precision.DoubleEquivalence precision)
Return a new instance representing an axis-aligned parallelepiped, ie, a rectangular prism.
|
static Parallelepiped.Builder |
builder(Precision.DoubleEquivalence precision)
Return a new
Parallelepiped.Builder instance to use for constructing parallelepipeds. |
static Parallelepiped |
fromTransformedUnitCube(Transform<Vector3D> transform,
Precision.DoubleEquivalence precision)
Construct a new instance by transforming a unit cube centered at the origin.
|
static Parallelepiped |
unitCube(Precision.DoubleEquivalence precision)
Construct a new instance representing a unit cube centered at the origin.
|
boundaryStream, fromBounds, fromBounds, full, getCentroid, getSize, split, toTree, transform, trim
classify, getBoundaries, getBoundarySize, isEmpty, isFull, project, splitInternal, swapsInsideOutside, toString, transformInternal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBounds, linecast, linecastFirst, of, of, toList, toTriangleMesh, triangleStream
linecast, linecastFirst
isFinite, isInfinite
public static Parallelepiped unitCube(Precision.DoubleEquivalence precision)
[ (-0.5, -0.5, -0.5), (0.5, -0.5, -0.5), (0.5, 0.5, -0.5), (-0.5, 0.5, -0.5), (-0.5, -0.5, 0.5), (0.5, -0.5, 0.5), (0.5, 0.5, 0.5), (-0.5, 0.5, 0.5) ]
precision
- precision context used to construct boundariespublic static Parallelepiped axisAligned(Vector3D a, Vector3D b, Precision.DoubleEquivalence precision)
a
and b
are taken to represent opposite corner points in the prism and may be
specified in any order.a
- first corner point in the prism (opposite of b
)b
- second corner point in the prism (opposite of a
)precision
- precision context used to construct boundariesIllegalArgumentException
- if the width, height, or depth of the defined prism is zero
as evaluated by the precision context.public static Parallelepiped fromTransformedUnitCube(Transform<Vector3D> transform, Precision.DoubleEquivalence precision)
[ (-0.5, -0.5, -0.5), (0.5, -0.5, -0.5), (0.5, 0.5, -0.5), (-0.5, 0.5, -0.5), (-0.5, -0.5, 0.5), (0.5, -0.5, 0.5), (0.5, 0.5, 0.5), (-0.5, 0.5, 0.5) ]
transform
- transform to apply to the vertices of the unit cubeprecision
- precision context used to construct boundariesIllegalArgumentException
- if the width, height, or depth of the defined shape is zero
as evaluated by the precision context.public static Parallelepiped.Builder builder(Precision.DoubleEquivalence precision)
Parallelepiped.Builder
instance to use for constructing parallelepipeds.precision
- precision context used to create boundariesParallelepiped.Builder
instanceCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.