Package | Description |
---|---|
org.apache.commons.geometry.euclidean.internal |
This package contains Euclidean geometry utilities and classes intended
for internal use only.
|
org.apache.commons.geometry.euclidean.threed |
This package provides basic 3D geometry components.
|
org.apache.commons.geometry.euclidean.threed.line |
This package provides classes and utilities for lines in 3D Euclidean space.
|
org.apache.commons.geometry.euclidean.threed.mesh |
This package contains types representing 3D mesh data structures.
|
org.apache.commons.geometry.euclidean.threed.rotation |
This package provides components related to rotations in 3 dimensional
Euclidean space.
|
org.apache.commons.geometry.euclidean.threed.shape |
This package provides utilities for constructing basic 3D shapes.
|
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
EuclideanUtils.convexPolygonToTriangleFan(List<Vector3D> vertices,
Function<List<Vector3D>,T> fn)
Convert a convex polygon defined by a list of vertices into a triangle fan.
|
static <T> List<T> |
EuclideanUtils.convexPolygonToTriangleFan(List<Vector3D> vertices,
Function<List<Vector3D>,T> fn)
Convert a convex polygon defined by a list of vertices into a triangle fan.
|
Modifier and Type | Class and Description |
---|---|
static class |
Vector3D.Unit
Represents unit vectors.
|
Modifier and Type | Field and Description |
---|---|
static Vector3D |
Vector3D.NaN
A vector with all coordinates set to NaN.
|
static Vector3D |
Vector3D.NEGATIVE_INFINITY
A vector with all coordinates set to negative infinity.
|
static Vector3D |
Vector3D.POSITIVE_INFINITY
A vector with all coordinates set to positive infinity.
|
static Vector3D |
Vector3D.ZERO
Zero (null) vector (coordinates: 0, 0, 0).
|
Modifier and Type | Field and Description |
---|---|
static Comparator<Vector3D> |
Vector3D.COORDINATE_ASCENDING_ORDER
Comparator that sorts vectors in component-wise ascending order.
|
Modifier and Type | Method and Description |
---|---|
Vector3D |
Vector3D.add(double factor,
Vector3D v) |
Vector3D |
Vector3D.add(Vector3D v) |
Vector3D |
AffineTransformMatrix3D.apply(Vector3D pt)
Apply this transform to the given point, returning the result as a new instance.
|
Vector3D |
AffineTransformMatrix3D.applyVector(Vector3D vec)
Apply this transform to the given vector, ignoring translations.
|
static Vector3D |
Vector3D.centroid(Iterable<Vector3D> pts)
Compute the centroid of the given points.
|
static Vector3D |
Vector3D.centroid(Vector3D first,
Vector3D... more)
Compute the centroid of the given points.
|
Vector3D |
Vector3D.cross(Vector3D v)
Compute the cross-product of the instance with another vector.
|
Vector3D |
Vector3D.Sum.get() |
Vector3D |
ConvexVolume.getCentroid() |
Vector3D |
Plane.getOrigin()
Get the orthogonal projection of the 3D-space origin in the plane.
|
Vector3D |
Triangle3D.getPoint1()
The first point in the triangle.
|
Vector3D |
Triangle3D.getPoint2()
The second point in the triangle.
|
Vector3D |
Triangle3D.getPoint3()
The third point in the triangle.
|
Vector3D |
Vector3D.getZero() |
Vector3D |
PlaneSubset.intersection(Line3D line)
Get the unique intersection of this plane subset with the given line.
|
Vector3D |
Plane.intersection(Line3D line)
Get the intersection of a line with this plane.
|
Vector3D |
PlaneSubset.intersection(LineConvexSubset3D lineSubset)
Get the unique intersection of this plane subset with the given line subset.
|
static Vector3D |
Plane.intersection(Plane plane1,
Plane plane2,
Plane plane3)
Get the intersection point of three planes.
|
Vector3D |
Vector3D.lerp(Vector3D p,
double t)
Get a vector constructed by linearly interpolating between this vector and the given vector.
|
static Vector3D |
Vector3D.max(Iterable<Vector3D> vecs)
Return a vector containing the maximum component values from all input vectors.
|
static Vector3D |
Vector3D.max(Vector3D first,
Vector3D... more)
Return a vector containing the maximum component values from all input vectors.
|
static Vector3D |
Vector3D.min(Iterable<Vector3D> vecs)
Return a vector containing the minimum component values from all input vectors.
|
static Vector3D |
Vector3D.min(Vector3D first,
Vector3D... more)
Return a vector containing the minimum component values from all input vectors.
|
Vector3D |
Vector3D.multiply(double a) |
Vector3D |
Vector3D.negate() |
static Vector3D |
Vector3D.of(double[] v)
Creates a vector from the coordinates in the given 3-element array.
|
static Vector3D |
Vector3D.of(double x,
double y,
double z)
Returns a vector with the given coordinate values.
|
static Vector3D |
Vector3D.parse(String str)
Parses the given string and returns a new vector instance.
|
Vector3D |
EmbeddingPlane.pointAt(Vector2D inPlane,
double offset)
Get one point from the 3D-space.
|
Vector3D |
Vector3D.project(Vector3D base)
Get the projection of the instance onto the given base vector.
|
Vector3D |
Plane.project(Vector3D point) |
Vector3D |
RegionBSPTree3D.project(Vector3D pt) |
Vector3D |
Vector3D.reject(Vector3D base)
Get the rejection of the instance from the given base vector.
|
Vector3D |
Vector3D.subtract(double factor,
Vector3D v) |
Vector3D |
Vector3D.subtract(Vector3D v) |
static Vector3D |
SphericalCoordinates.toCartesian(double radius,
double azimuth,
double polar)
Convert the given set of spherical coordinates to Cartesian coordinates.
|
Vector3D |
EmbeddingPlane.toSpace(Vector2D point)
Transform an in-plane point into a 3D space point.
|
Vector3D |
SphericalCoordinates.toVector()
Convert this set of spherical coordinates to a Cartesian form.
|
Vector3D |
Vector3D.transform(UnaryOperator<Vector3D> fn)
Convenience method to apply a function to this vector.
|
Vector3D |
Vector3D.vectorTo(Vector3D v)
Return the vector representing the displacement from this vector
to the given vector.
|
Vector3D |
Vector3D.withNorm(double magnitude) |
Vector3D |
Vector3D.Unit.withNorm(double mag) |
Modifier and Type | Method and Description |
---|---|
protected AbstractRegionBSPTree.RegionSizeProperties<Vector3D> |
RegionBSPTree3D.computeRegionSizeProperties() |
List<Vector3D> |
PlaneConvexSubset.getVertices()
Get the vertices for the convex subset in a counter-clockwise order as viewed looking down the plane
normal.
|
Modifier and Type | Method and Description |
---|---|
Vector3D |
Vector3D.add(double factor,
Vector3D v) |
Bounds3D.Builder |
Bounds3D.Builder.add(Vector3D pt)
Add a point to this instance.
|
Vector3D |
Vector3D.add(Vector3D v) |
Vector3D.Sum |
Vector3D.Sum.add(Vector3D vec)
Add a vector to this instance.
|
Vector3D.Sum |
Vector3D.Sum.addScaled(double scale,
Vector3D vec)
Add a scaled vector to this instance.
|
double |
Vector3D.angle(Vector3D v) |
Vector3D |
AffineTransformMatrix3D.apply(Vector3D pt)
Apply this transform to the given point, returning the result as a new instance.
|
Vector3D.Unit |
AffineTransformMatrix3D.applyDirection(Vector3D vec)
Apply this transform to the given vector, ignoring translations and normalizing the
result.
|
Vector3D |
AffineTransformMatrix3D.applyVector(Vector3D vec)
Apply this transform to the given vector, ignoring translations.
|
static Vector3D |
Vector3D.centroid(Vector3D first,
Vector3D... more)
Compute the centroid of the given points.
|
static Vector3D |
Vector3D.centroid(Vector3D first,
Vector3D... more)
Compute the centroid of the given points.
|
boolean |
Bounds3D.contains(Vector3D pt)
Return true if the given point is strictly within or on the boundary of the bounding box.
|
boolean |
Plane.contains(Vector3D p)
Check if the instance contains a point.
|
boolean |
Bounds3D.contains(Vector3D pt,
Precision.DoubleEquivalence precision)
Return true if the given point is within or on the boundary of the bounding box, using the given
precision context for floating point comparisons.
|
static AffineTransformMatrix3D |
AffineTransformMatrix3D.createRotation(Vector3D center,
QuaternionRotation rotation)
Create a transform representing a rotation about the given center point.
|
static AffineTransformMatrix3D |
AffineTransformMatrix3D.createScale(Vector3D factors)
Create a transform representing a scale operation.
|
static AffineTransformMatrix3D |
AffineTransformMatrix3D.createTranslation(Vector3D translation)
Create a transform representing the given translation.
|
Vector3D |
Vector3D.cross(Vector3D v)
Compute the cross-product of the instance with another vector.
|
Vector3D.Unit |
Vector3D.directionTo(Vector3D v)
Return the unit vector representing the direction of displacement from this
vector to the given vector.
|
double |
Vector3D.distance(Vector3D v) |
double |
Vector3D.distanceSq(Vector3D v) |
double |
Vector3D.dot(Vector3D v) |
boolean |
Vector3D.eq(Vector3D vec,
Precision.DoubleEquivalence precision)
Return true if the current instance and given vector are considered equal as evaluated by the
given precision context.
|
static List<PlaneConvexSubset> |
Planes.extrude(LinePath path,
EmbeddingPlane plane,
Vector3D extrusionVector,
Precision.DoubleEquivalence precision)
Get the boundaries of the 3D region created by extruding a 2D line path.
|
static List<PlaneConvexSubset> |
Planes.extrude(RegionBSPTree2D region,
EmbeddingPlane plane,
Vector3D extrusionVector,
Precision.DoubleEquivalence precision)
Get the boundaries of the 3D region created by extruding a 2D region.
|
static List<PlaneConvexSubset> |
Planes.extrudeVertexLoop(List<Vector2D> vertices,
EmbeddingPlane plane,
Vector3D extrusionVector,
Precision.DoubleEquivalence precision)
Get the boundaries of a 3D region created by extruding a polygon defined by a list of vertices.
|
static Vector3D.Unit |
Vector3D.Unit.from(Vector3D v)
Create a normalized vector.
|
static Bounds3D |
Bounds3D.from(Vector3D first,
Vector3D... more)
Construct a new instance from the given points.
|
static Bounds3D |
Bounds3D.from(Vector3D first,
Vector3D... more)
Construct a new instance from the given points.
|
static SphericalCoordinates |
SphericalCoordinates.fromCartesian(Vector3D vec)
Convert the given set of Cartesian coordinates to spherical coordinates.
|
static AffineTransformMatrix3D |
AffineTransformMatrix3D.fromColumnVectors(Vector3D u,
Vector3D v,
Vector3D w)
Get a new transform create from the given column vectors.
|
static AffineTransformMatrix3D |
AffineTransformMatrix3D.fromColumnVectors(Vector3D u,
Vector3D v,
Vector3D w,
Vector3D t)
Get a new transform created from the given column vectors.
|
static Plane |
Planes.fromNormal(Vector3D normal,
Precision.DoubleEquivalence precision)
Build a plane from a normal.
|
static Plane |
Planes.fromPointAndNormal(Vector3D p,
Vector3D normal,
Precision.DoubleEquivalence precision)
Build a plane from a point and a normal.
|
static EmbeddingPlane |
Planes.fromPointAndPlaneVectors(Vector3D p,
Vector3D u,
Vector3D v,
Precision.DoubleEquivalence precision)
Build a plane from a point and two (on plane) vectors.
|
static Plane |
Planes.fromPoints(Vector3D p1,
Vector3D p2,
Vector3D p3,
Precision.DoubleEquivalence precision)
Build a plane from three points.
|
static List<ConvexPolygon3D> |
Planes.indexedConvexPolygons(Vector3D[] vertices,
int[][] faceIndices,
Precision.DoubleEquivalence precision)
Construct a list of
ConvexPolygon3D instances from a set of vertices and arrays of face indices. |
static List<Triangle3D> |
Planes.indexedTriangles(Vector3D[] vertices,
int[][] faceIndices,
Precision.DoubleEquivalence precision)
Construct a list of
Triangle3D instances from a set of vertices and arrays of face indices. |
RegionBSPTree3D.PartitionedRegionBuilder3D |
RegionBSPTree3D.PartitionedRegionBuilder3D.insertAxisAlignedPartitions(Vector3D center,
Precision.DoubleEquivalence precision)
Insert a set of three axis aligned planes intersecting at the given point as partitions.
|
Vector3D |
Vector3D.lerp(Vector3D p,
double t)
Get a vector constructed by linearly interpolating between this vector and the given vector.
|
static Vector3D |
Vector3D.max(Vector3D first,
Vector3D... more)
Return a vector containing the maximum component values from all input vectors.
|
static Vector3D |
Vector3D.max(Vector3D first,
Vector3D... more)
Return a vector containing the maximum component values from all input vectors.
|
static Vector3D |
Vector3D.min(Vector3D first,
Vector3D... more)
Return a vector containing the minimum component values from all input vectors.
|
static Vector3D |
Vector3D.min(Vector3D first,
Vector3D... more)
Return a vector containing the minimum component values from all input vectors.
|
static Vector3D.Sum |
Vector3D.Sum.of(Vector3D initial)
Construct a new instance with an initial value set to the argument.
|
static Vector3D.Sum |
Vector3D.Sum.of(Vector3D first,
Vector3D... more)
Construct a new instance from multiple values.
|
static Vector3D.Sum |
Vector3D.Sum.of(Vector3D first,
Vector3D... more)
Construct a new instance from multiple values.
|
double |
Plane.offset(Vector3D point) |
Vector3D.Unit |
Vector3D.orthogonal(Vector3D dir)
Get a unit vector orthogonal to the current vector and pointing in the direction
of
dir . |
Vector3D |
Vector3D.project(Vector3D base)
Get the projection of the instance onto the given base vector.
|
Vector3D |
Plane.project(Vector3D point) |
Vector3D |
RegionBSPTree3D.project(Vector3D pt) |
Vector3D |
Vector3D.reject(Vector3D base)
Get the rejection of the instance from the given base vector.
|
EmbeddingPlane |
EmbeddingPlane.rotate(Vector3D center,
QuaternionRotation rotation)
Rotate the plane around the specified point.
|
Plane |
Plane.rotate(Vector3D center,
QuaternionRotation rotation)
Rotate the plane around the specified point.
|
AffineTransformMatrix3D |
AffineTransformMatrix3D.rotate(Vector3D center,
QuaternionRotation rotation)
Apply a rotation around the given center point to the current instance, returning the result
as a new transform.
|
AffineTransformMatrix3D |
AffineTransformMatrix3D.scale(Vector3D scaleFactors)
Apply a scale operation to the current instance, returning the result as a new transform.
|
Vector3D |
Vector3D.subtract(double factor,
Vector3D v) |
Vector3D |
Vector3D.subtract(Vector3D v) |
Vector2D |
EmbeddingPlane.toSubspace(Vector3D point)
Transform a 3D space point into an in-plane point.
|
EmbeddingPlane |
EmbeddingPlane.translate(Vector3D translation)
Translate the plane by the specified amount.
|
Plane |
Plane.translate(Vector3D translation)
Translate the plane by the specified amount.
|
AffineTransformMatrix3D |
AffineTransformMatrix3D.translate(Vector3D translation)
Apply a translation to the current instance, returning the result as a new transform.
|
static Triangle3D |
Planes.triangleFromVertices(Vector3D p1,
Vector3D p2,
Vector3D p3,
Precision.DoubleEquivalence precision)
Construct a triangle from three vertices.
|
Vector3D |
Vector3D.vectorTo(Vector3D v)
Return the vector representing the displacement from this vector
to the given vector.
|
Modifier and Type | Method and Description |
---|---|
Bounds3D.Builder |
Bounds3D.Builder.addAll(Iterable<? extends Vector3D> pts)
Add a collection of points to this instance.
|
static Vector3D |
Vector3D.centroid(Iterable<Vector3D> pts)
Compute the centroid of the given points.
|
static ConvexPolygon3D |
Planes.convexPolygonFromVertices(Collection<Vector3D> pts,
Precision.DoubleEquivalence precision)
Create a new convex polygon from the given sequence of vertices.
|
static Bounds3D |
Bounds3D.from(Iterable<Vector3D> points)
Construct a new instance from the given points.
|
static AffineTransformMatrix3D |
AffineTransformMatrix3D.from(UnaryOperator<Vector3D> fn)
Construct a new transform representing the given function.
|
static Plane |
Planes.fromPoints(Collection<Vector3D> pts,
Precision.DoubleEquivalence precision)
Construct a plane from a collection of points lying on the plane.
|
static List<ConvexPolygon3D> |
Planes.indexedConvexPolygons(List<? extends Vector3D> vertices,
int[][] faceIndices,
Precision.DoubleEquivalence precision)
Construct a list of
ConvexPolygon3D instances from a set of vertices and arrays of face indices. |
static List<Triangle3D> |
Planes.indexedTriangles(List<? extends Vector3D> vertices,
int[][] faceIndices,
Precision.DoubleEquivalence precision)
Construct a list of
Triangle3D instances from a set of vertices and arrays of face indices. |
static Vector3D |
Vector3D.max(Iterable<Vector3D> vecs)
Return a vector containing the maximum component values from all input vectors.
|
static Vector3D |
Vector3D.min(Iterable<Vector3D> vecs)
Return a vector containing the minimum component values from all input vectors.
|
boolean |
Plane.similarOrientation(Hyperplane<Vector3D> other) |
Split<PlaneConvexSubset> |
PlaneConvexSubset.split(Hyperplane<Vector3D> splitter) |
Split<EmbeddedTreePlaneSubset> |
EmbeddedTreePlaneSubset.split(Hyperplane<Vector3D> splitter) |
Split<ConvexVolume> |
ConvexVolume.split(Hyperplane<Vector3D> splitter) |
Split<RegionBSPTree3D> |
RegionBSPTree3D.split(Hyperplane<Vector3D> splitter) |
EmbeddingPlane.SubspaceTransform |
EmbeddingPlane.subspaceTransform(Transform<Vector3D> transform)
Get an object containing the current plane transformed by the argument along with a
2D transform that can be applied to subspace points.
|
PlaneConvexSubset |
PlaneConvexSubset.transform(Transform<Vector3D> transform) |
EmbeddedTreePlaneSubset |
EmbeddedTreePlaneSubset.transform(Transform<Vector3D> transform) |
Triangle3D |
Triangle3D.transform(Transform<Vector3D> transform) |
EmbeddingPlane |
EmbeddingPlane.transform(Transform<Vector3D> transform) |
Plane |
Plane.transform(Transform<Vector3D> transform) |
ConvexPolygon3D |
ConvexPolygon3D.transform(Transform<Vector3D> transform) |
ConvexVolume |
ConvexVolume.transform(Transform<Vector3D> transform)
Return a new instance transformed by the argument.
|
Vector3D |
Vector3D.transform(UnaryOperator<Vector3D> fn)
Convenience method to apply a function to this vector.
|
PlaneConvexSubset |
ConvexVolume.trim(HyperplaneConvexSubset<Vector3D> convexSubset) |
Modifier and Type | Method and Description |
---|---|
Vector3D |
Line3D.closest(Line3D line)
Compute the point of the instance closest to another line.
|
Vector3D |
ReverseRay3D.getCentroid()
Get the centroid, or geometric center, of the line subset or null if
the subset is empty or infinite.
|
Vector3D |
Segment3D.getCentroid()
Get the centroid, or geometric center, of the line subset or null if
the subset is empty or infinite.
|
Vector3D |
Ray3D.getCentroid()
Get the centroid, or geometric center, of the line subset or null if
the subset is empty or infinite.
|
Vector3D |
EmbeddedTreeLineSubset3D.getCentroid()
Get the centroid, or geometric center, of the line subset or null if
the subset is empty or infinite.
|
abstract Vector3D |
LineSubset3D.getCentroid()
Get the centroid, or geometric center, of the line subset or null if
the subset is empty or infinite.
|
Vector3D |
Line3D.getDirection()
Get the normalized direction vector.
|
Vector3D |
Ray3D.getDirection()
Get the direction of the ray.
|
Vector3D |
ReverseRay3D.getEndPoint()
Get the end point for the line subset.
|
Vector3D |
Segment3D.getEndPoint()
Get the end point for the line subset.
|
abstract Vector3D |
LineConvexSubset3D.getEndPoint()
Get the end point for the line subset.
|
Vector3D |
Ray3D.getEndPoint()
Get the end point for the line subset.
|
Vector3D |
Line3D.getOrigin()
Get the line point closest to the origin.
|
Vector3D |
ReverseRay3D.getStartPoint()
Get the start point for the line subset.
|
Vector3D |
Segment3D.getStartPoint()
Get the start point for the line subset.
|
abstract Vector3D |
LineConvexSubset3D.getStartPoint()
Get the start point for the line subset.
|
Vector3D |
Ray3D.getStartPoint() |
Vector3D |
Line3D.intersection(Line3D line)
Get the intersection point of the instance and another line.
|
Vector3D |
Line3D.pointAt(double abscissa)
Get one point from the line.
|
Vector3D |
Line3D.toSpace(double abscissa)
Get the 3 dimensional point at the given abscissa position
on the line.
|
Vector3D |
Line3D.toSpace(Vector1D pt) |
Vector3D |
LineSubset3D.toSpace(Vector1D pt) |
Modifier and Type | Method and Description |
---|---|
double |
Line3D.abscissa(Vector3D pt)
Get the abscissa of the given point on the line.
|
boolean |
LineConvexSubset3D.contains(Vector3D pt)
Return true if the given point lies in the line subset.
|
boolean |
Line3D.contains(Vector3D pt)
Check if the instance contains a point.
|
double |
Line3D.distance(Vector3D pt)
Compute the distance between the instance and a point.
|
static Line3D |
Lines3D.fromPointAndDirection(Vector3D pt,
Vector3D dir,
Precision.DoubleEquivalence precision)
Create a new line instance from a point and a direction.
|
static Line3D |
Lines3D.fromPoints(Vector3D p1,
Vector3D p2,
Precision.DoubleEquivalence precision)
Create a new line instance from two points that lie on the line.
|
Ray3D |
Line3D.rayFrom(Vector3D startPoint)
Create a new ray instance that starts at the projection of the given point
and continues in the direction of the line to infinity.
|
static Ray3D |
Lines3D.rayFromPoint(Line3D line,
Vector3D startPoint)
Construct a ray starting at the given point and continuing to infinity in the direction
of
line . |
static Ray3D |
Lines3D.rayFromPointAndDirection(Vector3D startPoint,
Vector3D direction,
Precision.DoubleEquivalence precision)
Construct a ray from a start point and a direction.
|
static ReverseRay3D |
Lines3D.reverseRayFromPoint(Line3D line,
Vector3D endPoint)
Construct a reverse ray starting at infinity and continuing in the direction of
line
to the given end point. |
static ReverseRay3D |
Lines3D.reverseRayFromPointAndDirection(Vector3D endPoint,
Vector3D lineDirection,
Precision.DoubleEquivalence precision)
Construct a reverse ray from an end point and a line direction.
|
ReverseRay3D |
Line3D.reverseRayTo(Vector3D endPoint)
Create a new line convex subset that starts at infinity and continues along
the line up to the projection of the given end point.
|
Segment3D |
Line3D.segment(Vector3D a,
Vector3D b)
Create a new line segment from two points.
|
static Segment3D |
Lines3D.segmentFromPoints(Line3D line,
Vector3D a,
Vector3D b)
Construct a new line segment from a line and a pair of points.
|
static Segment3D |
Lines3D.segmentFromPoints(Vector3D startPoint,
Vector3D endPoint,
Precision.DoubleEquivalence precision)
Construct a new line segment from two points.
|
Vector1D |
Line3D.toSubspace(Vector3D pt) |
Vector1D |
LineSubset3D.toSubspace(Vector3D pt) |
Modifier and Type | Method and Description |
---|---|
Line3D.SubspaceTransform |
Line3D.subspaceTransform(Transform<Vector3D> transform)
Get an object containing the current line transformed by the argument along with a
1D transform that can be applied to subspace points.
|
ReverseRay3D |
ReverseRay3D.transform(Transform<Vector3D> transform)
Transform this instance.
|
Segment3D |
Segment3D.transform(Transform<Vector3D> transform)
Transform this instance.
|
abstract LineConvexSubset3D |
LineConvexSubset3D.transform(Transform<Vector3D> transform)
Transform this instance.
|
Line3D |
Line3D.transform(Transform<Vector3D> transform)
Transform this instance.
|
Ray3D |
Ray3D.transform(Transform<Vector3D> transform)
Transform this instance.
|
EmbeddedTreeLineSubset3D |
EmbeddedTreeLineSubset3D.transform(Transform<Vector3D> transform)
Transform this instance.
|
Constructor and Description |
---|
LinecastPoint3D(Vector3D point,
Vector3D normal,
Line3D line)
Construct a new instance from its components.
|
Modifier and Type | Method and Description |
---|---|
Vector3D |
TriangleMesh.Face.getPoint1()
Get the first vertex in the face.
|
Vector3D |
TriangleMesh.Face.getPoint2()
Get the second vertex in the face.
|
Vector3D |
TriangleMesh.Face.getPoint3()
Get the third vertex in the face.
|
Vector3D |
SimpleTriangleMesh.Builder.getVertex(int index)
Get the vertex at the given index.
|
Modifier and Type | Method and Description |
---|---|
List<Vector3D> |
Mesh.getVertices()
Get a list containing all vertices in the mesh.
|
List<Vector3D> |
Mesh.Face.getVertices()
Get the vertices for the face.
|
List<Vector3D> |
SimpleTriangleMesh.getVertices()
Get a list containing all vertices in the mesh.
|
Iterable<Vector3D> |
Mesh.vertices()
Get an iterable containing the vertices in the mesh.
|
Iterable<Vector3D> |
SimpleTriangleMesh.vertices()
Get an iterable containing the vertices in the mesh.
|
Modifier and Type | Method and Description |
---|---|
SimpleTriangleMesh.Builder |
SimpleTriangleMesh.Builder.addFaceAndVertices(Vector3D p1,
Vector3D p2,
Vector3D p3)
Add a face and its vertices to this mesh.
|
SimpleTriangleMesh.Builder |
SimpleTriangleMesh.Builder.addFaceUsingVertices(Vector3D p1,
Vector3D p2,
Vector3D p3)
Add a face to this mesh, only adding vertices to the vertex list if equivalent vertices are
not found.
|
int |
SimpleTriangleMesh.Builder.addVertex(Vector3D vertex)
Add a vertex directly to the vertex list, returning the index of the added vertex.
|
SimpleTriangleMesh.Builder |
SimpleTriangleMesh.Builder.addVertices(Vector3D[] newVertices)
Add a group of vertices directly to the vertex list.
|
static SimpleTriangleMesh |
SimpleTriangleMesh.from(Vector3D[] vertices,
int[][] faces,
Precision.DoubleEquivalence precision)
Construct a new triangle mesh from the given vertices and face indices.
|
int |
SimpleTriangleMesh.Builder.useVertex(Vector3D vertex)
Use a vertex in the constructed mesh.
|
Modifier and Type | Method and Description |
---|---|
SimpleTriangleMesh.Builder |
SimpleTriangleMesh.Builder.addVertices(Collection<? extends Vector3D> newVertices)
Add a group of vertices directly to the vertex list.
|
static SimpleTriangleMesh |
SimpleTriangleMesh.from(Collection<Vector3D> vertices,
Collection<int[]> faces,
Precision.DoubleEquivalence precision)
Construct a new triangle mesh from the given vertices and face indices.
|
TriangleMesh |
TriangleMesh.transform(Transform<Vector3D> transform)
Return a new, transformed mesh by applying the given transform to
all vertices.
|
Mesh<F> |
Mesh.transform(Transform<Vector3D> transform)
Return a new, transformed mesh by applying the given transform to
all vertices.
|
SimpleTriangleMesh |
SimpleTriangleMesh.transform(Transform<Vector3D> transform)
Return a new, transformed mesh by applying the given transform to
all vertices.
|
Modifier and Type | Method and Description |
---|---|
Vector3D |
Rotation3D.apply(Vector3D vec)
Apply this rotation to the given argument.
|
Vector3D |
QuaternionRotation.apply(Vector3D v)
Apply this rotation to the given vector.
|
Vector3D |
QuaternionRotation.applyVector(Vector3D vec)
Apply this transform to the given vector, ignoring translations.
|
Vector3D |
Rotation3D.getAxis()
Get the axis of rotation as a normalized
Vector3D . |
Vector3D |
QuaternionRotation.getAxis()
Get the axis of rotation as a normalized
Vector3D . |
Vector3D |
AxisSequence.getAxis1()
Get the first rotation axis.
|
Vector3D |
AxisSequence.getAxis2()
Get the second rotation axis.
|
Vector3D |
AxisSequence.getAxis3()
Get the third rotation axis.
|
Vector3D[] |
AxisSequence.toArray()
Get an array containing the 3 rotation axes in order.
|
Modifier and Type | Method and Description |
---|---|
Vector3D |
Rotation3D.apply(Vector3D vec)
Apply this rotation to the given argument.
|
Vector3D |
QuaternionRotation.apply(Vector3D v)
Apply this rotation to the given vector.
|
Vector3D |
QuaternionRotation.applyVector(Vector3D vec)
Apply this transform to the given vector, ignoring translations.
|
static QuaternionRotation |
QuaternionRotation.createBasisRotation(Vector3D u1,
Vector3D u2,
Vector3D v1,
Vector3D v2)
Return an instance that rotates the basis defined by the first two vectors into the basis
defined by the second two.
|
static QuaternionRotation |
QuaternionRotation.createVectorRotation(Vector3D u,
Vector3D v)
Return an instance that rotates the first vector to the second.
|
static QuaternionRotation |
QuaternionRotation.fromAxisAngle(Vector3D axis,
double angle)
Create a new instance representing a rotation of
angle radians around
axis . |
Modifier and Type | Method and Description |
---|---|
Vector3D |
Sphere.firstIntersection(Line3D line)
Get the first intersection point between the given line and this sphere, or null
if no such point exists.
|
Vector3D |
Sphere.project(Vector3D pt) |
Modifier and Type | Method and Description |
---|---|
List<Vector3D> |
Sphere.intersections(Line3D line)
Get the intersections of the given line with this sphere.
|
Modifier and Type | Method and Description |
---|---|
static Parallelepiped |
Parallelepiped.axisAligned(Vector3D a,
Vector3D b,
Precision.DoubleEquivalence precision)
Return a new instance representing an axis-aligned parallelepiped, ie, a rectangular prism.
|
static Sphere |
Sphere.from(Vector3D center,
double radius,
Precision.DoubleEquivalence precision)
Construct a sphere from a center point and radius.
|
Vector3D |
Sphere.project(Vector3D pt) |
Parallelepiped.Builder |
Parallelepiped.Builder.setPosition(Vector3D pos)
Set the center position of the created parallelepiped.
|
Parallelepiped.Builder |
Parallelepiped.Builder.setScale(Vector3D scaleFactors)
Set the scaling for the created parallelepiped.
|
Modifier and Type | Method and Description |
---|---|
static Parallelepiped |
Parallelepiped.fromTransformedUnitCube(Transform<Vector3D> transform,
Precision.DoubleEquivalence precision)
Construct a new instance by transforming a unit cube centered at the origin.
|
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.