Uses of Class
org.apache.commons.geometry.euclidean.threed.Vector3D
Packages that use Vector3D
Package
Description
This package contains Euclidean geometry utilities and classes intended
for internal use only.
This package provides basic 3D geometry components.
This package provides classes and utilities for lines in 3D Euclidean space.
This package contains types representing 3D mesh data structures.
This package provides components related to rotations in 3 dimensional
Euclidean space.
This package provides utilities for constructing basic 3D shapes.
This package contains the core interfaces and classes providing IO
functionality for Euclidean 3D space.
This package contains types for reading and writing the
OBJ
geometric data file format.
This package contains types for reading and writing the
STL
geometric data file format.
This package contains types for working with simple text-based 3D geometric
data formats, including CSV and simple text files.
This package provides basic geometry components on the 2-sphere.
-
Uses of Vector3D in org.apache.commons.geometry.euclidean.internal
Method parameters in org.apache.commons.geometry.euclidean.internal with type arguments of type Vector3DModifier and TypeMethodDescriptionstatic <T> List<T> Convert a convex polygon defined by a list of vertices into a triangle fan.static <T> List<T> Convert a convex polygon defined by a list of vertices into a triangle fan.private static intEuclideanUtils.findBestTriangleFanIndex(List<Vector3D> vertices) Find the index of the best vertex to use as the base for a triangle fan split of the convex polygon defined by the given vertices. -
Uses of Vector3D in org.apache.commons.geometry.euclidean.threed
Subclasses of Vector3D in org.apache.commons.geometry.euclidean.threedSubclasses with type arguments of type Vector3D in org.apache.commons.geometry.euclidean.threedModifier and TypeClassDescriptionfinal classClass using a matrix to represent affine transformations in 3 dimensional Euclidean space.classBoundarySource3Dimplementation that uses boundaries stored in a list.final classClass containing minimum and maximum points defining a 3D axis-aligned bounding box.classClass representing a finite or infinite convex volume in Euclidean 3D space.classClass representing a plane in 3 dimensional Euclidean space.final classBinary space partitioning (BSP) tree representing a region in three dimensional Euclidean space.private static final classClass used to project points onto the 3D region boundary.static final classClass used to build regions in Euclidean 3D space by inserting boundaries into a BSP tree containing "partitions", i.e.static final classBSP tree node for three dimensional Euclidean space.classThis class represents vectors and points in three-dimensional Euclidean space.static final classClass used to create high-accuracy sums of vectors.Subinterfaces with type arguments of type Vector3D in org.apache.commons.geometry.euclidean.threedModifier and TypeInterfaceDescriptioninterfaceInterface representing a finite or infinite convex subset of points in a plane in Euclidean 3D space.interfaceInterface representing a subset of points in a plane in Euclidean 3D space.static interfaceInterface used to represent plane subsets as embedded 2D subspace regions.Classes in org.apache.commons.geometry.euclidean.threed that implement interfaces with type arguments of type Vector3DModifier and TypeClassDescriptionfinal classExtension of thePlaneclass that supports embedding of 2D subspaces in the plane.private static final classBSP tree visitor that performs a linecast operation against the boundaries of the visited tree.private static final classVisitor for computing geometric properties for 3D BSP tree instances.Fields in org.apache.commons.geometry.euclidean.threed declared as Vector3DModifier and TypeFieldDescriptionprivate final Vector3DPlanes.PlaneRegionExtruder.extrusionVectorVector to extrude along; the extruded plane is translated from the base plane by this amount.static final Vector3DVector3D.NaNA vector with all coordinates set to NaN.static final Vector3DVector3D.NEGATIVE_INFINITYA vector with all coordinates set to negative infinity.private final Vector3DSimpleTriangle3D.p1First point in the triangle.private final Vector3DSimpleTriangle3D.p2Second point in the triangle.private final Vector3DSimpleTriangle3D.p3Third point in the triangle.static final Vector3DVector3D.POSITIVE_INFINITYA vector with all coordinates set to positive infinity.private Vector3DPlanes.PlaneBuilder.prevPtThe previous point from the point sequence.private Vector3DPlanes.PlaneBuilder.prevVectorThe previous vector from the point sequence, preceding from thestartPttoprevPt.private Vector3DPlanes.PlaneBuilder.startPtThe start point from the point sequence.static final Vector3DVector3D.ZEROZero (null) vector (coordinates: 0, 0, 0).Fields in org.apache.commons.geometry.euclidean.threed with type parameters of type Vector3DModifier and TypeFieldDescriptionstatic final Comparator<Vector3D> Vector3D.COORDINATE_ASCENDING_ORDERComparator that sorts vectors in component-wise ascending order.private final Collection<? extends Vector3D> Planes.PlaneBuilder.ptsThe point sequence to build a plane for.Planes.PlaneBuilder.uniqueVertexOutputList that unique vertices discovered in the input sequence will be added to.VertexListConvexPolygon3D.verticesVertex loop defining the convex polygon.Methods in org.apache.commons.geometry.euclidean.threed with type parameters of type Vector3DModifier and TypeMethodDescriptionprivate <V extends Vector3D>
VVector3D.getComponent(Vector3D base, boolean reject, DoubleFunction3N<V> factory) Returns a component of the current instance relative to the given base vector.Methods in org.apache.commons.geometry.euclidean.threed that return Vector3DModifier and TypeMethodDescriptionAdd a scaled vector to the instance.Add a vector to the instance.Apply this transform to the given point, returning the result as a new instance.AffineTransformMatrix3D.applyVector(Vector3D vec) Apply this transform to the given vector, ignoring translations.static Vector3DCompute the centroid of the given points.static Vector3DCompute the centroid of the given points.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside), or null if no such point exists.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside), or null if no such point exists.private static Vector3DVector3D.computeCentroid(Vector3D first, Iterator<? extends Vector3D> more) Internal method for computing the centroid of a set of points.private static Vector3DVector3D.computeMax(Vector3D first, Iterator<? extends Vector3D> more) Internal method for computing a max vector.private static Vector3DVector3D.computeMin(Vector3D first, Iterator<? extends Vector3D> more) Internal method for computing a min vector.Compute the cross-product of the instance with another vector.protected Vector3DRegionBSPTree3D.BoundaryProjector3D.disambiguateClosestPoint(Vector3D target, Vector3D a, Vector3D b) Method used to determine which of pointsaandbshould be considered as the "closest" point totargetwhen the points are exactly equidistant.Vector3D.Sum.get()AbstractConvexPolygon3D.getCentroid()Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.AbstractEmbeddedRegionPlaneSubset.getCentroid()Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.ConvexVolume.getCentroid()Get the centroid, or geometric center, of the region or null if no centroid exists or one exists but is not unique.SimpleTriangle3D.getCentroid()Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.Plane.getOrigin()Get the orthogonal projection of the 3D-space origin in the plane.SimpleTriangle3D.getPoint1()The first point in the triangle.Triangle3D.getPoint1()The first point in the triangle.SimpleTriangle3D.getPoint2()The second point in the triangle.Triangle3D.getPoint2()The second point in the triangle.SimpleTriangle3D.getPoint3()The third point in the triangle.Triangle3D.getPoint3()The third point in the triangle.Vector3D.getZero()Get the zero (null) vector of the space.AbstractPlaneSubset.intersection(Line3D line) Get the unique intersection of this plane subset with the given line.AbstractPlaneSubset.intersection(LineConvexSubset3D lineSubset) Get the unique intersection of this plane subset with the given line subset.Plane.intersection(Line3D line) Get the intersection of a line with this plane.static Vector3DPlane.intersection(Plane plane1, Plane plane2, Plane plane3) Get the intersection point of three planes.(package private) static Vector3DPlanes.intersection(PlaneSubset planeSubset, Line3D line) Get the unique intersection of the plane subset with the given line.(package private) static Vector3DPlanes.intersection(PlaneSubset planeSubset, LineConvexSubset3D lineSubset) Get the unique intersection of the plane subset with the given line subset.PlaneSubset.intersection(Line3D line) Get the unique intersection of this plane subset with the given line.PlaneSubset.intersection(LineConvexSubset3D lineSubset) Get the unique intersection of this plane subset with the given line subset.Get a vector constructed by linearly interpolating between this vector and the given vector.static Vector3DReturn a vector containing the maximum component values from all input vectors.static Vector3DReturn a vector containing the maximum component values from all input vectors.static Vector3DReturn a vector containing the minimum component values from all input vectors.static Vector3DReturn a vector containing the minimum component values from all input vectors.Vector3D.multiply(double a) Multiply the instance by a scalar.Vector3D.negate()Get the negation of the instance.static Vector3DVector3D.of(double[] v) Creates a vector from the coordinates in the given 3-element array.static Vector3DVector3D.of(double x, double y, double z) Returns a vector with the given coordinate values.static Vector3DParses the given string and returns a new vector instance.Get one point from the 3D-space.Project a point onto this instance.Project a point onto the boundary of the region.Get the projection of the instance onto the given base vector.Get the rejection of the instance from the given base vector.Subtract a scaled vector from the instance.Subtract a vector from the instance.static Vector3DSphericalCoordinates.toCartesian(double radius, double azimuth, double polar) Convert the given set of spherical coordinates to Cartesian coordinates.Transform a subspace point into a space point.Transform an in-plane point into a 3D space point.SphericalCoordinates.toVector()Convert this set of spherical coordinates to a Cartesian form.Vector3D.transform(UnaryOperator<Vector3D> fn) Convenience method to apply a function to this vector.Return the vector representing the displacement from this vector to the given vector.Vector3D.Unit.withNorm(double mag) Returns a vector with the same direction but with the given norm.Vector3D.withNorm(double magnitude) Returns a vector with the same direction but with the given norm.Methods in org.apache.commons.geometry.euclidean.threed that return types with arguments of type Vector3DModifier and TypeMethodDescriptionAbstractConvexPolygon3D.buildPolygonSplitVertexList(int enterIdx, Vector3D newEnterPt, int exitIdx, Vector3D newExitPt, List<? extends Vector3D> vertices) Internal method for building a vertex list for one side of a split result.RegionBSPTree3D.computeRegionSizeProperties()Compute the size-related properties of the region.RegionBSPTree3D.RegionSizePropertiesVisitor.getRegionSizeProperties()Return the computed size properties for the visited region.EmbeddedAreaPlaneConvexSubset.getVertices()Get the vertices for the convex subset in a counter-clockwise order as viewed looking down the plane normal.PlaneConvexSubset.getVertices()Get the vertices for the convex subset in a counter-clockwise order as viewed looking down the plane normal.SimpleTriangle3D.getVertices()Get the vertices for the convex subset in a counter-clockwise order as viewed looking down the plane normal.VertexListConvexPolygon3D.getVertices()Get the vertices for the convex subset in a counter-clockwise order as viewed looking down the plane normal.Methods in org.apache.commons.geometry.euclidean.threed with parameters of type Vector3DModifier and TypeMethodDescriptionAdd a point to this instance.Add a scaled vector to the instance.Add a vector to the instance.Add a vector to this instance.Add a scaled vector to this instance.doubleCompute the angular separation between two vectors in radians.Apply this transform to the given point, returning the result as a new instance.AffineTransformMatrix3D.applyDirection(Vector3D vec) Apply this transform to the given vector, ignoring translations and normalizing the result.AffineTransformMatrix3D.applyVector(Vector3D vec) Apply this transform to the given vector, ignoring translations.private <T> TAffineTransformMatrix3D.applyVector(Vector3D vec, DoubleFunction3N<T> factory) Multiplies the given vector by the 3x3 linear transformation matrix contained in the upper-right corner of the affine transformation matrix.AbstractConvexPolygon3D.buildPolygonSplitVertexList(int enterIdx, Vector3D newEnterPt, int exitIdx, Vector3D newExitPt, List<? extends Vector3D> vertices) Internal method for building a vertex list for one side of a split result.static Vector3DCompute the centroid of the given points.Classify a point with respect to the subset region.Classify a point with respect to the subset region.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside), or null if no such point exists.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside), or null if no such point exists.private static Vector3DVector3D.computeCentroid(Vector3D first, Iterator<? extends Vector3D> more) Internal method for computing the centroid of a set of points.private LinecastPoint3DRegionBSPTree3D.LinecastVisitor.computeLinecastPoint(Vector3D pt, RegionBSPTree3D.RegionNode3D node) Compute the linecast point for the given intersection point and tree node, returning null if the point does not actually lie on the region boundary.private static Vector3DVector3D.computeMax(Vector3D first, Iterator<? extends Vector3D> more) Internal method for computing a max vector.private static Vector3DVector3D.computeMin(Vector3D first, Iterator<? extends Vector3D> more) Internal method for computing a min vector.booleanReturn true if the given point is strictly within or on the boundary of the bounding box.booleanBounds3D.contains(Vector3D pt, org.apache.commons.numbers.core.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.booleanCheck if the instance contains a point.static AffineTransformMatrix3DAffineTransformMatrix3D.createRotation(Vector3D center, QuaternionRotation rotation) Create a transform representing a rotation about the given center point.static AffineTransformMatrix3DAffineTransformMatrix3D.createScale(Vector3D factors) Create a transform representing a scale operation.static AffineTransformMatrix3DAffineTransformMatrix3D.createTranslation(Vector3D translation) Create a transform representing the given translation.Compute the cross-product of the instance with another vector.Vector3D.directionTo(Vector3D v) Return the unit vector representing the direction of displacement from this vector to the given vector.protected Vector3DRegionBSPTree3D.BoundaryProjector3D.disambiguateClosestPoint(Vector3D target, Vector3D a, Vector3D b) Method used to determine which of pointsaandbshould be considered as the "closest" point totargetwhen the points are exactly equidistant.doubleCompute the distance between the instance and another vector.doubleVector3D.distanceSq(Vector3D v) Compute the square of the distance between the instance and another vector.doubleCompute the dot-product of the instance and another vector.booleanReturn 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, org.apache.commons.numbers.core.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, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Get the boundaries of the 3D region created by extruding a 2D region.private ConvexPolygon3DPlanes.PlaneRegionExtruder.extrudeSideFinite(Vector3D startPt, Vector3D endPt) Extrude a single, finite boundary forming one of the sides of the extruded region.static List<PlaneConvexSubset> Planes.extrudeVertexLoop(List<Vector2D> vertices, EmbeddingPlane plane, Vector3D extrusionVector, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Get the boundaries of a 3D region created by extruding a polygon defined by a list of vertices.static Bounds3DConstruct a new instance from the given points.static Vector3D.UnitCreate a normalized vector.static SphericalCoordinatesSphericalCoordinates.fromCartesian(Vector3D vec) Convert the given set of Cartesian coordinates to spherical coordinates.static AffineTransformMatrix3DAffineTransformMatrix3D.fromColumnVectors(Vector3D u, Vector3D v, Vector3D w) Get a new transform create from the given column vectors.static AffineTransformMatrix3DAffineTransformMatrix3D.fromColumnVectors(Vector3D u, Vector3D v, Vector3D w, Vector3D t) Get a new transform created from the given column vectors.static PlanePlanes.fromNormal(Vector3D normal, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Build a plane from a normal.static PlanePlanes.fromPointAndNormal(Vector3D p, Vector3D normal, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Build a plane from a point and a normal.static EmbeddingPlanePlanes.fromPointAndPlaneVectors(Vector3D p, Vector3D u, Vector3D v, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Build a plane from a point and two (on plane) vectors.static PlanePlanes.fromPoints(Vector3D p1, Vector3D p2, Vector3D p3, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Build a plane from three points.private <V extends Vector3D>
VVector3D.getComponent(Vector3D base, boolean reject, DoubleFunction3N<V> factory) Returns a component of the current instance relative to the given base vector.static List<ConvexPolygon3D> Planes.indexedConvexPolygons(Vector3D[] vertices, int[][] faceIndices, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a list ofConvexPolygon3Dinstances from a set of vertices and arrays of face indices.static List<Triangle3D> Planes.indexedTriangles(Vector3D[] vertices, int[][] faceIndices, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a list ofTriangle3Dinstances from a set of vertices and arrays of face indices.private voidRegionBSPTree3D.PartitionedRegionBuilder3D.insertAxisAlignedGridRecursive(Vector3D min, Vector3D max, int level, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Recursively insert axis-aligned grid partitions.RegionBSPTree3D.PartitionedRegionBuilder3D.insertAxisAlignedPartitions(Vector3D center, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Insert a set of three axis aligned planes intersecting at the given point as partitions.Get a vector constructed by linearly interpolating between this vector and the given vector.static Vector3DReturn a vector containing the maximum component values from all input vectors.static Vector3DReturn a vector containing the minimum component values from all input vectors.static Vector3D.SumConstruct a new instance with an initial value set to the argument.static Vector3D.SumConstruct a new instance from multiple values.doubleGet the offset (oriented distance) of a point with respect to this instance.Vector3D.orthogonal(Vector3D dir) Get a unit vector orthogonal to the current vector and pointing in the direction ofdir.private voidPlanes.PlaneBuilder.processCrossProduct(Vector3D cross) Process the computed cross product of two vectors from the input point sequence.private voidPlanes.PlaneBuilder.processPoint(Vector3D pt) Process a point from the point sequence.Project a point onto this instance.Project a point onto the boundary of the region.Get the projection of the instance onto the given base vector.Get the rejection of the instance from the given base vector.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.EmbeddingPlane.rotate(Vector3D center, QuaternionRotation rotation) Rotate the plane around the specified point.Plane.rotate(Vector3D center, QuaternionRotation rotation) Rotate the plane around the specified point.Apply a scale operation to the current instance, returning the result as a new transform.Subtract a scaled vector from the instance.Subtract a vector from the instance.AbstractEmbeddedRegionPlaneSubset.toSubspace(Vector3D pt) Transform a space point into a subspace point.EmbeddingPlane.toSubspace(Vector3D point) Transform a 3D space point into an in-plane point.Apply a translation to the current instance, returning the result as a new transform.Translate the plane by the specified amount.Translate the plane by the specified amount.static Triangle3DPlanes.triangleFromVertices(Vector3D p1, Vector3D p2, Vector3D p3, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a triangle from three vertices.Return the vector representing the displacement from this vector to the given vector.Method parameters in org.apache.commons.geometry.euclidean.threed with type arguments of type Vector3DModifier and TypeMethodDescriptionAdd a collection of points to this instance.private voidRegionBSPTree3D.RegionSizePropertiesVisitor.addBoundaryContribution(HyperplaneSubset<Vector3D> boundary, boolean reverse) Add the contribution of the given node cut boundary.(package private) PlanePlanes.PlaneBuilder.buildForConvexPolygon(List<? super Vector3D> vertexOutput) Build a plane from the configured point sequence, validating that the points form a convex region and adding all discovered unique points to the given list.AbstractConvexPolygon3D.buildPolygonSplitVertexList(int enterIdx, Vector3D newEnterPt, int exitIdx, Vector3D newExitPt, List<? extends Vector3D> vertices) Internal method for building a vertex list for one side of a split result.static Vector3DCompute the centroid of the given points.private static Vector3DVector3D.computeCentroid(Vector3D first, Iterator<? extends Vector3D> more) Internal method for computing the centroid of a set of points.private static Vector3DVector3D.computeMax(Vector3D first, Iterator<? extends Vector3D> more) Internal method for computing a max vector.private static Vector3DVector3D.computeMin(Vector3D first, Iterator<? extends Vector3D> more) Internal method for computing a min vector.static ConvexPolygon3DPlanes.convexPolygonFromVertices(Collection<Vector3D> pts, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new convex polygon from the given sequence of vertices.(package private) static List<Triangle3D> Planes.convexPolygonToTriangleFan(Plane plane, List<Vector3D> vertices) Convert a convex polygon defined by a plane and list of points into a triangle fan.static AffineTransformMatrix3DAffineTransformMatrix3D.from(UnaryOperator<Vector3D> fn) Construct a new transform representing the given function.static Bounds3DConstruct a new instance from the given points.(package private) static ConvexPolygon3DPlanes.fromConvexPlanarVertices(Plane plane, List<Vector3D> vertices) Construct a convex polygon 3D from a plane and a list of vertices lying in the plane.static PlanePlanes.fromPoints(Collection<Vector3D> pts, org.apache.commons.numbers.core.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, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a list ofConvexPolygon3Dinstances from a set of vertices and arrays of face indices.static List<Triangle3D> Planes.indexedTriangles(List<? extends Vector3D> vertices, int[][] faceIndices, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a list ofTriangle3Dinstances from a set of vertices and arrays of face indices.static Vector3DReturn a vector containing the maximum component values from all input vectors.static Vector3DReturn a vector containing the minimum component values from all input vectors.booleanPlane.similarOrientation(Hyperplane<Vector3D> other) Return true if this instance has a similar orientation to the given hyperplane, meaning that they point in generally the same direction.AbstractConvexPolygon3D.split(Hyperplane<Vector3D> splitter) Split this instance with the given hyperplane.ConvexVolume.split(Hyperplane<Vector3D> splitter) Split this instance with the given hyperplane.EmbeddedAreaPlaneConvexSubset.split(Hyperplane<Vector3D> splitter) Split this instance with the given hyperplane.EmbeddedTreePlaneSubset.split(Hyperplane<Vector3D> splitter) Split this instance with the given hyperplane.PlaneConvexSubset.split(Hyperplane<Vector3D> splitter) Split this instance with the given hyperplane.RegionBSPTree3D.split(Hyperplane<Vector3D> splitter) Split this instance with the given hyperplane.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.Return a new hyperplane subset resulting from the application of the given transform.Return a new instance transformed by the argument.Return a new hyperplane subset resulting from the application of the given transform.Return a new hyperplane subset resulting from the application of the given transform.Transform this instance using the givenTransform.Transform this instance using the givenTransform.Return a new hyperplane subset resulting from the application of the given transform.Return a new hyperplane subset resulting from the application of the given transform.Return a new hyperplane subset resulting from the application of the given transform.Vector3D.transform(UnaryOperator<Vector3D> fn) Convenience method to apply a function to this vector.Return a new hyperplane subset resulting from the application of the given transform.ConvexVolume.trim(HyperplaneConvexSubset<Vector3D> convexSubset) Trim the given hyperplane subset to the portion contained inside this instance.Constructors in org.apache.commons.geometry.euclidean.threed with parameters of type Vector3DModifierConstructorDescriptionprivateBoundaryProjector3D(Vector3D point) Simple constructor.privateSimple constructor.(package private)PlaneRegionExtruder(EmbeddingPlane basePlane, Vector3D extrusionVector, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a new instance that performs extrusions frombasePlanealongextrusionVector.(package private)SimpleTriangle3D(Plane plane, Vector3D p1, Vector3D p2, Vector3D p3) Construct a new instance from a plane and 3 points.(package private)Construct a new instance with the given initial value.Constructor parameters in org.apache.commons.geometry.euclidean.threed with type arguments of type Vector3DModifierConstructorDescription(package private)PlaneBuilder(Collection<? extends Vector3D> pts, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a new build instance for the given point sequence and precision context.(package private)Simple constructor.(package private)VertexListConvexPolygon3D(Plane plane, List<Vector3D> vertices) Construct a new instance with the given plane and list of vertices. -
Uses of Vector3D in org.apache.commons.geometry.euclidean.threed.line
Subclasses with type arguments of type Vector3D in org.apache.commons.geometry.euclidean.threed.lineModifier and TypeClassDescriptionclassClass representing intersections resulting from linecast operations in Euclidean 3D space.Classes in org.apache.commons.geometry.euclidean.threed.line that implement interfaces with type arguments of type Vector3DModifier and TypeClassDescriptionfinal classClass representing a line in 3D space.classClass representing a subset of a line in 3D Euclidean space.Fields in org.apache.commons.geometry.euclidean.threed.line declared as Vector3DModifier and TypeFieldDescriptionprivate final Vector3DLine3D.directionLine direction.private final Vector3DLine3D.originLine point closest to the origin.Methods in org.apache.commons.geometry.euclidean.threed.line that return Vector3DModifier and TypeMethodDescriptionCompute the point of the instance closest to another line.EmbeddedTreeLineSubset3D.getCentroid()Get the centroid, or geometric center, of the line subset or null if the subset is empty or infinite.LineSpanningSubset3D.getCentroid()Get the centroid, or geometric center, of the line subset or null if the subset is empty or infinite.abstract Vector3DLineSubset3D.getCentroid()Get the centroid, or geometric center, of the line subset or null if the subset is empty or infinite.Ray3D.getCentroid()Get the centroid, or geometric center, of the line subset or null if the subset is empty or infinite.ReverseRay3D.getCentroid()Get the centroid, or geometric center, of the line subset or null if the subset is empty or infinite.Segment3D.getCentroid()Get the centroid, or geometric center, of the line subset or null if the subset is empty or infinite.Line3D.getDirection()Get the normalized direction vector.Ray3D.getDirection()Get the direction of the ray.abstract Vector3DLineConvexSubset3D.getEndPoint()Get the end point for the line subset.LineSpanningSubset3D.getEndPoint()Get the end point for the line subset.Ray3D.getEndPoint()Get the end point for the line subset.ReverseRay3D.getEndPoint()Get the end point for the line subset.Segment3D.getEndPoint()Get the end point for the line subset.Line3D.getOrigin()Get the line point closest to the origin.abstract Vector3DLineConvexSubset3D.getStartPoint()Get the start point for the line subset.LineSpanningSubset3D.getStartPoint()Get the start point for the line subset.Ray3D.getStartPoint()ReverseRay3D.getStartPoint()Get the start point for the line subset.Segment3D.getStartPoint()Get the start point for the line subset.Line3D.intersection(Line3D line) Get the intersection point of the instance and another line.Line3D.pointAt(double abscissa) Get one point from the line.Line3D.toSpace(double abscissa) Get the 3 dimensional point at the given abscissa position on the line.Transform a subspace point into a space point.Transform a subspace point into a space point.Methods in org.apache.commons.geometry.euclidean.threed.line with parameters of type Vector3DModifier and TypeMethodDescriptiondoubleGet the abscissa of the given point on the line.booleanCheck if the instance contains a point.booleanReturn true if the given point lies in the line subset.doubleCompute the distance between the instance and a point.static Line3DLines3D.fromPointAndDirection(Vector3D pt, Vector3D dir, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new line instance from a point and a direction.static Line3DLines3D.fromPoints(Vector3D p1, Vector3D p2, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new line instance from two points that lie on the line.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 Ray3DLines3D.rayFromPoint(Line3D line, Vector3D startPoint) Construct a ray starting at the given point and continuing to infinity in the direction ofline.static Ray3DLines3D.rayFromPointAndDirection(Vector3D startPoint, Vector3D direction, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a ray from a start point and a direction.static ReverseRay3DLines3D.reverseRayFromPoint(Line3D line, Vector3D endPoint) Construct a reverse ray starting at infinity and continuing in the direction oflineto the given end point.static ReverseRay3DLines3D.reverseRayFromPointAndDirection(Vector3D endPoint, Vector3D lineDirection, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a reverse ray from an end point and a line direction.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.Create a new line segment from two points.static Segment3DLines3D.segmentFromPoints(Line3D line, Vector3D a, Vector3D b) Construct a new line segment from a line and a pair of points.static Segment3DLines3D.segmentFromPoints(Vector3D startPoint, Vector3D endPoint, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a new line segment from two points.Line3D.toSubspace(Vector3D pt) Transform a space point into a subspace point.LineSubset3D.toSubspace(Vector3D pt) Transform a space point into a subspace point.Method parameters in org.apache.commons.geometry.euclidean.threed.line with type arguments of type Vector3DModifier and TypeMethodDescriptionLine3D.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.Transform this instance.Transform this instance.abstract LineConvexSubset3DTransform this instance.Transform this instance.Transform this instance.Transform this instance.Transform this instance.Constructors in org.apache.commons.geometry.euclidean.threed.line with parameters of type Vector3DModifierConstructorDescription(package private)Line3D(Vector3D origin, Vector3D direction, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Simple constructor.LinecastPoint3D(Vector3D point, Vector3D normal, Line3D line) Construct a new instance from its components.(package private)Construct a ray from a line and a start point.(package private)ReverseRay3D(Line3D line, Vector3D endPoint) Construct a new instance from the given line and end point.(package private)Construct a new instance from a line and two points on the line. -
Uses of Vector3D in org.apache.commons.geometry.euclidean.threed.mesh
Classes in org.apache.commons.geometry.euclidean.threed.mesh that implement interfaces with type arguments of type Vector3DModifier and TypeClassDescriptionprivate static final classComparator used to sort vectors using non-strict ("fuzzy") comparisons.Fields in org.apache.commons.geometry.euclidean.threed.mesh with type parameters of type Vector3DModifier and TypeFieldDescriptionSimpleTriangleMesh.Builder.vertexIndexMapMap of vertices to their first occurrence in the vertex list.SimpleTriangleMesh.Builder.verticesList of vertices.SimpleTriangleMesh.verticesVertices in the mesh.Methods in org.apache.commons.geometry.euclidean.threed.mesh that return Vector3DModifier and TypeMethodDescriptionSimpleTriangleMesh.SimpleTriangleFace.getPoint1()Get the first vertex in the face.TriangleMesh.Face.getPoint1()Get the first vertex in the face.SimpleTriangleMesh.SimpleTriangleFace.getPoint2()Get the second vertex in the face.TriangleMesh.Face.getPoint2()Get the second vertex in the face.SimpleTriangleMesh.SimpleTriangleFace.getPoint3()Get the third vertex in the face.TriangleMesh.Face.getPoint3()Get the third vertex in the face.SimpleTriangleMesh.Builder.getVertex(int index) Get the vertex at the given index.Methods in org.apache.commons.geometry.euclidean.threed.mesh that return types with arguments of type Vector3DModifier and TypeMethodDescriptionSimpleTriangleMesh.Builder.getVertexIndexMap()Get the vertex index map, creating and initializing it if needed.Mesh.Face.getVertices()Get the vertices for the face.Mesh.getVertices()Get a list containing all vertices in the mesh.SimpleTriangleMesh.getVertices()Get a list containing all vertices in the mesh.SimpleTriangleMesh.SimpleTriangleFace.getVertices()Get the vertices for the face.Mesh.vertices()Get an iterable containing the vertices in the mesh.SimpleTriangleMesh.vertices()Get an iterable containing the vertices in the mesh.Methods in org.apache.commons.geometry.euclidean.threed.mesh with parameters of type Vector3DModifier and TypeMethodDescriptionSimpleTriangleMesh.Builder.addFaceAndVertices(Vector3D p1, Vector3D p2, Vector3D p3) Add a face and its vertices to this mesh.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.private intSimpleTriangleMesh.Builder.addToVertexIndexMap(Vector3D vertex, int targetIdx, Map<? super Vector3D, Integer> map) Add a vertex to the given vertex index map.private intSimpleTriangleMesh.Builder.addToVertexList(Vector3D vertex) Append the given vertex to the end of the vertex list.intAdd a vertex directly to the vertex list, returning the index of the added vertex.SimpleTriangleMesh.Builder.addVertices(Vector3D[] newVertices) Add a group of vertices directly to the vertex list.intstatic SimpleTriangleMeshSimpleTriangleMesh.from(Vector3D[] vertices, int[][] faces, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a new triangle mesh from the given vertices and face indices.intUse a vertex in the constructed mesh.Method parameters in org.apache.commons.geometry.euclidean.threed.mesh with type arguments of type Vector3DModifier and TypeMethodDescriptionprivate intSimpleTriangleMesh.Builder.addToVertexIndexMap(Vector3D vertex, int targetIdx, Map<? super Vector3D, Integer> map) Add a vertex to the given vertex index map.SimpleTriangleMesh.Builder.addVertices(Collection<? extends Vector3D> newVertices) Add a group of vertices directly to the vertex list.static SimpleTriangleMeshSimpleTriangleMesh.from(Collection<Vector3D> vertices, Collection<int[]> faces, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a new triangle mesh from the given vertices and face indices.Return a new, transformed mesh by applying the given transform to all vertices.Return a new, transformed mesh by applying the given transform to all vertices.Return a new, transformed mesh by applying the given transform to all vertices.Constructor parameters in org.apache.commons.geometry.euclidean.threed.mesh with type arguments of type Vector3DModifierConstructorDescriptionprivateSimpleTriangleMesh(List<Vector3D> vertices, List<int[]> faces, Bounds3D bounds, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a new instance from a vertex list and set of faces. -
Uses of Vector3D in org.apache.commons.geometry.euclidean.threed.rotation
Subinterfaces with type arguments of type Vector3D in org.apache.commons.geometry.euclidean.threed.rotationModifier and TypeInterfaceDescriptioninterfaceInterface representing a generic rotation in 3-dimensional Euclidean space.Fields in org.apache.commons.geometry.euclidean.threed.rotation declared as Vector3DModifier and TypeFieldDescriptionprivate final Vector3DAxisSequence.axis1Axis of the first rotation.private final Vector3DAxisSequence.axis2Axis of the second rotation.private final Vector3DAxisSequence.axis3Axis of the third rotation.Methods in org.apache.commons.geometry.euclidean.threed.rotation that return Vector3DModifier and TypeMethodDescriptionApply this rotation to the given vector.Apply this rotation to the given argument.QuaternionRotation.applyVector(Vector3D vec) Apply this transform to the given vector, ignoring translations.QuaternionRotation.getAxis()Get the axis of rotation as a normalizedVector3D.Rotation3D.getAxis()Get the axis of rotation as a normalizedVector3D.AxisSequence.getAxis1()Get the first rotation axis.AxisSequence.getAxis2()Get the second rotation axis.AxisSequence.getAxis3()Get the third rotation axis.Vector3D[]AxisSequence.toArray()Get an array containing the 3 rotation axes in order.Methods in org.apache.commons.geometry.euclidean.threed.rotation with parameters of type Vector3DModifier and TypeMethodDescriptionApply this rotation to the given vector.Apply this rotation to the given argument.QuaternionRotation.applyVector(Vector3D vec) Apply this transform to the given vector, ignoring translations.static QuaternionRotationQuaternionRotation.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 QuaternionRotationQuaternionRotation.createVectorRotation(Vector3D u, Vector3D v) Return an instance that rotates the first vector to the second.static QuaternionRotationQuaternionRotation.fromAxisAngle(Vector3D axis, double angle) Create a new instance representing a rotation ofangleradians aroundaxis.private double[]QuaternionRotation.getAbsoluteEulerAngles(Vector3D axis1, Vector3D axis2) Get a sequence of angles around the given Euler axes that produce a rotation equivalent to this instance.private double[]QuaternionRotation.getAbsoluteTaitBryanAngles(Vector3D axis1, Vector3D axis2, Vector3D axis3) Get a sequence of angles around the given Tait-Bryan axes that produce a rotation equivalent to this instance.private double[]QuaternionRotation.getRelativeEulerAngles(Vector3D axis1, Vector3D axis2) Get a sequence of angles around the given Euler axes that produce a rotation equivalent to this instance.private double[]QuaternionRotation.getRelativeTaitBryanAngles(Vector3D axis1, Vector3D axis2, Vector3D axis3) Get a sequence of angles around the given Tait-Bryan axes that produce a rotation equivalent to this instance.Constructors in org.apache.commons.geometry.euclidean.threed.rotation with parameters of type Vector3DModifierConstructorDescriptionprivateAxisSequence(AxisSequenceType type, Vector3D axis1, Vector3D axis2, Vector3D axis3) Simple constructor. -
Uses of Vector3D in org.apache.commons.geometry.euclidean.threed.shape
Subclasses with type arguments of type Vector3D in org.apache.commons.geometry.euclidean.threed.shapeModifier and TypeClassDescriptionfinal classClass representing a 3 dimensional sphere in Euclidean space.Fields in org.apache.commons.geometry.euclidean.threed.shape declared as Vector3DModifier and TypeFieldDescriptionprivate Vector3DParallelepiped.Builder.positionAmount to translate the parallelepiped.private Vector3DParallelepiped.Builder.scaleAmount to scale the parallelepiped.Fields in org.apache.commons.geometry.euclidean.threed.shape with type parameters of type Vector3DModifier and TypeFieldDescriptionParallelepiped.UNIT_CUBE_VERTICESVertices defining a cube with sides of length 1 centered at the origin.Methods in org.apache.commons.geometry.euclidean.threed.shape that return Vector3DModifier and TypeMethodDescriptionSphere.firstIntersection(Line3D line) Get the first intersection point between the given line and this sphere, or null if no such point exists.Project a point onto the boundary of the region.Methods in org.apache.commons.geometry.euclidean.threed.shape that return types with arguments of type Vector3DModifier and TypeMethodDescriptionSphere.intersections(Line3D line) Get the intersections of the given line with this sphere.Methods in org.apache.commons.geometry.euclidean.threed.shape with parameters of type Vector3DModifier and TypeMethodDescriptionprivate voidSphere.SphereMeshApproximationBuilder.addSubdivided(Vector3D p1, Vector3D p2, Vector3D p3, int level) Recursively subdivide and add triangular faces between the given outer boundary points.static ParallelepipedParallelepiped.axisAligned(Vector3D a, Vector3D b, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Return a new instance representing an axis-aligned parallelepiped, ie, a rectangular prism.private PlaneSphere.SphereTreeApproximationBuilder.createPlane(Vector3D p1, Vector3D p2, Vector3D p3) Create a plane from the given points, using the precision context of the sphere.private static voidParallelepiped.ensureNonZeroSideLength(Vector3D a, Vector3D b, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Ensure that the given points defining one side of a parallelepiped face are separated by a non-zero distance, as determined by the precision context.static SphereSphere.from(Vector3D center, double radius, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a sphere from a center point and radius.private RegionBSPTree3D.RegionNode3DSphere.SphereTreeApproximationBuilder.insertSubdividedTriangles(RegionBSPTree3D.RegionNode3D node, Vector3D p1, Vector3D p2, Vector3D p3, int level) Recursively insert subdivided triangles into the given node.private voidSphere.SphereTreeApproximationBuilder.partitionAndInsert(RegionBSPTree3D.RegionNode3D node, Vector3D p1, Vector3D p2, Vector3D p3, int level) Recursively insert structural BSP tree cuts into the given node and then insert subdivided triangles when a target subdivision level is reached.Project a point onto the boundary of the region.Parallelepiped.Builder.setPosition(Vector3D pos) Set the center position of the created parallelepiped.Set the scaling for the created parallelepiped.Method parameters in org.apache.commons.geometry.euclidean.threed.shape with type arguments of type Vector3DModifier and TypeMethodDescriptionprivate static PlaneConvexSubsetParallelepiped.createFace(int a, int b, int c, int d, List<? extends Vector3D> vertices, boolean reverse, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a single face of a parallelepiped using the indices of elements in the given vertex list.static ParallelepipedParallelepiped.fromTransformedUnitCube(Transform<Vector3D> transform, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a new instance by transforming a unit cube centered at the origin.Constructors in org.apache.commons.geometry.euclidean.threed.shape with parameters of type Vector3D -
Uses of Vector3D in org.apache.commons.geometry.io.euclidean.threed
Fields in org.apache.commons.geometry.io.euclidean.threed declared as Vector3DModifier and TypeFieldDescriptionprivate final Vector3DSimpleFacetDefinition.normalFacet normal; may be null.Fields in org.apache.commons.geometry.io.euclidean.threed with type parameters of type Vector3DMethods in org.apache.commons.geometry.io.euclidean.threed that return Vector3DModifier and TypeMethodDescriptionFacetDefinition.getNormal()Get the normal defined for the facet or null if one has not been explicitly specified.SimpleFacetDefinition.getNormal()Get the normal defined for the facet or null if one has not been explicitly specified.Methods in org.apache.commons.geometry.io.euclidean.threed that return types with arguments of type Vector3DModifier and TypeMethodDescriptionFacetDefinition.getVertices()Get the facet vertices.SimpleFacetDefinition.getVertices()Get the facet vertices.Methods in org.apache.commons.geometry.io.euclidean.threed with parameters of type Vector3DModifier and TypeMethodDescriptionstatic ConvexPolygon3DFacetDefinitions.toPolygon(Collection<Vector3D> vertices, Vector3D normal, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct aConvexPolygon3Dfrom the given facet vertices and optional normal.Method parameters in org.apache.commons.geometry.io.euclidean.threed with type arguments of type Vector3DModifier and TypeMethodDescriptionstatic ConvexPolygon3DFacetDefinitions.toPolygon(Collection<Vector3D> vertices, Vector3D normal, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct aConvexPolygon3Dfrom the given facet vertices and optional normal.Constructors in org.apache.commons.geometry.io.euclidean.threed with parameters of type Vector3DModifierConstructorDescriptionSimpleFacetDefinition(List<Vector3D> vertices, Vector3D normal) Construct a new instance with the given vertices and normal.Constructor parameters in org.apache.commons.geometry.io.euclidean.threed with type arguments of type Vector3DModifierConstructorDescriptionSimpleFacetDefinition(List<Vector3D> vertices) Construct a new instance with the given vertices and no defined normal.SimpleFacetDefinition(List<Vector3D> vertices, Vector3D normal) Construct a new instance with the given vertices and normal. -
Uses of Vector3D in org.apache.commons.geometry.io.euclidean.threed.obj
Fields in org.apache.commons.geometry.io.euclidean.threed.obj with type parameters of type Vector3DModifier and TypeFieldDescriptionObjFacetDefinitionReader.normalsList of normals encountered in the input.ObjTriangleMeshReader.normalsList of normals discovered in the input.ObjFacetDefinitionReader.verticesList of vertices encountered in the input.Methods in org.apache.commons.geometry.io.euclidean.threed.obj that return Vector3DModifier and TypeMethodDescriptionPolygonObjParser.Face.computeNormalFromVertices(IntFunction<Vector3D> modelVertexFn) Compute a normal for the face using its first three vertices.PolygonObjParser.Face.getDefinedCompositeNormal(IntFunction<Vector3D> modelNormalFn) Get a composite normal for the face by computing the sum of all defined vertex normals and normalizing the result.AbstractObjParser.readVector()Read a whitespace-delimited 3D vector from the current data line.Methods in org.apache.commons.geometry.io.euclidean.threed.obj that return types with arguments of type Vector3DModifier and TypeMethodDescriptionPolygonObjParser.Face.getVertices(IntFunction<Vector3D> modelVertexFn) Get the face vertices in the order defined in the face definition.PolygonObjParser.Face.getVerticesCounterClockwise(Vector3D normal, IntFunction<Vector3D> modelVertexFn) Get the face vertices in the order that produces a counter-clockwise winding when viewed looking down the given normal.Methods in org.apache.commons.geometry.io.euclidean.threed.obj with parameters of type Vector3DModifier and TypeMethodDescriptionprivate voidAdd a face to the buffer.intAdd a normal to the buffer.private intConvert the given vector to on OBJ definition string and add it to the map if not yet present.intAdd a vertex to the buffer.private StringObjWriter.createVectorString(Vector3D vec) Create the OBJ string representation of the given vector.PolygonObjParser.Face.getVertexAttributesCounterClockwise(Vector3D normal, IntFunction<Vector3D> modelVertexFn) Get the vertex attributes for the face listed in the order that produces a counter-clockwise winding of vertices when viewed looking down the given normal direction.PolygonObjParser.Face.getVerticesCounterClockwise(Vector3D normal, IntFunction<Vector3D> modelVertexFn) Get the face vertices in the order that produces a counter-clockwise winding when viewed looking down the given normal.protected abstract voidAbstractObjPolygonReader.handleNormal(Vector3D normal) Method called when a normal is found in the OBJ content.protected voidObjFacetDefinitionReader.handleNormal(Vector3D normal) Method called when a normal is found in the OBJ content.protected voidObjTriangleMeshReader.handleNormal(Vector3D normal) Method called when a normal is found in the OBJ content.protected abstract voidAbstractObjPolygonReader.handleVertex(Vector3D vertex) Method called when a vertex is found in the OBJ content.protected voidObjFacetDefinitionReader.handleVertex(Vector3D vertex) Method called when a vertex is found in the OBJ content.protected voidObjTriangleMeshReader.handleVertex(Vector3D vertex) Method called when a vertex is found in the OBJ content.intObjWriter.writeVertex(Vector3D vertex) Write a vertex and return the 0-based index of the vertex in the output.intObjWriter.writeVertexNormal(Vector3D normal) Write a vertex normal and return the 0-based index of the normal in the output.Method parameters in org.apache.commons.geometry.io.euclidean.threed.obj with type arguments of type Vector3DModifier and TypeMethodDescriptionprivate voidAdd a face to the buffer.PolygonObjParser.Face.computeNormalFromVertices(IntFunction<Vector3D> modelVertexFn) Compute a normal for the face using its first three vertices.PolygonObjParser.Face.getDefinedCompositeNormal(IntFunction<Vector3D> modelNormalFn) Get a composite normal for the face by computing the sum of all defined vertex normals and normalizing the result.PolygonObjParser.Face.getVertexAttributesCounterClockwise(Vector3D normal, IntFunction<Vector3D> modelVertexFn) Get the vertex attributes for the face listed in the order that produces a counter-clockwise winding of vertices when viewed looking down the given normal direction.PolygonObjParser.Face.getVertices(IntFunction<Vector3D> modelVertexFn) Get the face vertices in the order defined in the face definition.PolygonObjParser.Face.getVerticesCounterClockwise(Vector3D normal, IntFunction<Vector3D> modelVertexFn) Get the face vertices in the order that produces a counter-clockwise winding when viewed looking down the given normal. -
Uses of Vector3D in org.apache.commons.geometry.io.euclidean.threed.stl
Methods in org.apache.commons.geometry.io.euclidean.threed.stl that return Vector3DModifier and TypeMethodDescriptionprivate static Vector3DStlUtils.computeTriangleNormal(Vector3D p1, Vector3D p2, Vector3D p3) Get the normal using the right-hand rule for the given triangle vertices.(package private) static Vector3DStlUtils.determineNormal(Vector3D p1, Vector3D p2, Vector3D p3, Vector3D normal) Determine the normal that should be used for the given STL triangle vertices.private Vector3DBinaryStlFacetDefinitionReader.readVector(ByteBuffer buf) Read a vector from the given byte buffer.private Vector3DTextStlFacetDefinitionReader.readVector()Read a vector from the input.Methods in org.apache.commons.geometry.io.euclidean.threed.stl with parameters of type Vector3DModifier and TypeMethodDescriptionprivate static Vector3DStlUtils.computeTriangleNormal(Vector3D p1, Vector3D p2, Vector3D p3) Get the normal using the right-hand rule for the given triangle vertices.(package private) static Vector3DStlUtils.determineNormal(Vector3D p1, Vector3D p2, Vector3D p3, Vector3D normal) Determine the normal that should be used for the given STL triangle vertices.(package private) static booleanStlUtils.pointsAreCounterClockwise(Vector3D p1, Vector3D p2, Vector3D p3, Vector3D normal) Return true if the given points are arranged counter-clockwise relative to the given normal.private voidPut all double components ofvecinto the internal buffer.voidBinaryStlWriter.writeTriangle(Vector3D p1, Vector3D p2, Vector3D p3, Vector3D normal) Write a triangle to the output using a default attribute value of 0.voidBinaryStlWriter.writeTriangle(Vector3D p1, Vector3D p2, Vector3D p3, Vector3D normal, int attributeValue) Write a triangle to the output.voidTextStlWriter.writeTriangle(Vector3D p1, Vector3D p2, Vector3D p3, Vector3D normal) Write a triangle to the output.voidTextStlWriter.writeTriangles(List<Vector3D> vertices, Vector3D normal) Write the facet defined by the given vertices and normal to the output as triangles.private voidTextStlWriter.writeTriangleVertex(Vector3D vertex) Write a triangle vertex to the output.private voidTextStlWriter.writeVector(Vector3D vec) Write a vector to the output.Method parameters in org.apache.commons.geometry.io.euclidean.threed.stl with type arguments of type Vector3DModifier and TypeMethodDescriptionvoidTextStlWriter.writeTriangles(List<Vector3D> vertices, Vector3D normal) Write the facet defined by the given vertices and normal to the output as triangles.Constructors in org.apache.commons.geometry.io.euclidean.threed.stl with parameters of type Vector3DModifierConstructorDescriptionBinaryStlFacetDefinition(List<Vector3D> vertices, Vector3D normal, int attributeValue) Construct a new instance.Constructor parameters in org.apache.commons.geometry.io.euclidean.threed.stl with type arguments of type Vector3DModifierConstructorDescriptionBinaryStlFacetDefinition(List<Vector3D> vertices, Vector3D normal, int attributeValue) Construct a new instance. -
Uses of Vector3D in org.apache.commons.geometry.io.euclidean.threed.txt
Methods in org.apache.commons.geometry.io.euclidean.threed.txt that return Vector3DModifier and TypeMethodDescriptionprivate Vector3DTextFacetDefinitionReader.readVector()Read a vector starting from the current parser position.Methods in org.apache.commons.geometry.io.euclidean.threed.txt with parameters of type Vector3DModifier and TypeMethodDescriptionprivate voidWrite a single vertex to the output.Method parameters in org.apache.commons.geometry.io.euclidean.threed.txt with type arguments of type Vector3D -
Uses of Vector3D in org.apache.commons.geometry.spherical.twod
Methods in org.apache.commons.geometry.spherical.twod that return Vector3DModifier and TypeMethodDescriptionprivate static Vector3DConvexArea2S.computeArcPoleWeightedCentroidVector(List<GreatArc> arcs) Compute the weighted centroid vector for the triangle or polygon formed by the given arcs by adding together the arc pole vectors multiplied by their respective arc lengths.private static Vector3DConvexArea2S.computeHemisphereWeightedCentroidVector(GreatArc arc) Compute the weighted centroid vector for the hemisphere formed by the given arc.private static Vector3DConvexArea2S.computeLuneWeightedCentroidVector(GreatArc a, GreatArc b) Compute the weighted centroid vector for the lune formed by the given arcs.private static Vector3DConvexArea2S.computeTriangleFanWeightedCentroidVector(List<GreatArc> arcs) Compute the weighted centroid vector for the triangle or polygon formed by the given arcs using a triangle fan approach.(package private) Vector3DConvexArea2S.getWeightedCentroidVector()Return the weighted centroid vector of the area.GreatCircle.vectorAt(double azimuth) Get the vector on the great circle with the given azimuth angle.Methods in org.apache.commons.geometry.spherical.twod with parameters of type Vector3DModifier and TypeMethodDescriptiondoubleGet the azimuth angle of a vector in the range[0, 2pi).static Transform2STransform2S.createReflection(Vector3D poleVector) Create a transform that performs a reflection across the equatorial plane defined by the given pole point.static Transform2STransform2S.createRotation(Vector3D axis, double angle) Create a transform that rotates the given angle aroundaxis.static Point2SBuild a point from its underlying 3D vector.static GreatCircleGreatCircles.fromPole(Vector3D pole, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a great circle instance from its pole vector.static GreatCircleGreatCircles.fromPoleAndU(Vector3D pole, Vector3D u, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a great circle instance from its pole vector and a vector representing the u-axis in the equator plane.doubleGet the offset (oriented distance) of a direction.Apply a reflection across the equatorial plane defined by the given pole vector to this instance.Apply a rotation ofangleradians around the given 3D axis to this instance.