Modifier and Type | Interface and Description |
---|---|
interface |
MVector3d
Interface for 3-dimensional vectors.
|
Modifier and Type | Field and Description |
---|---|
static Vector3d |
Vector3d.NEG_UNIT_X
The vector (-1, 0, 0).
|
static Vector3d |
Vector3d.NEG_UNIT_Y
The vector (0, -1, 0).
|
static Vector3d |
Vector3d.NEG_UNIT_Z
The vector (0, 0, -1).
|
static Vector3d |
Vector3d.UNIT_X
The vector (1, 0, 0).
|
static Vector3d |
Vector3d.UNIT_Y
The vector (0, 1, 0).
|
static Vector3d |
Vector3d.UNIT_Z
The vector (0, 0, 1).
|
static Vector3d |
Vector3d.ZERO
The vector (0, 0, 0).
|
Modifier and Type | Method and Description |
---|---|
static Vector3d |
Vector3d.create(double x,
double y,
double z)
Returns a new vector with the given component values.
|
static Vector3d |
Vector3d.create(Vector3d vector)
Returns a new vector with the component values of the given vector.
|
Modifier and Type | Method and Description |
---|---|
Optional<Vector3d> |
Vector3d.project(Vector3d vector)
Returns an orthogonal projection of this vector on the given vector if it exists.
|
Modifier and Type | Method and Description |
---|---|
MVector3d |
Vector3d.add(Vector3d vector)
Returns the sum of this vector and the given vector.
|
void |
MVector3d.addInPlace(Vector3d vector)
Adds the given vector to this vector in place.
|
double |
Vector3d.angle(Vector3d vector)
Returns the angle in radians between this vector and the given vector.
|
static MVector3d |
MVector3d.create(Vector3d vector)
Returns a new instance with the same component values as in the given
vector.
|
static Vector3d |
Vector3d.create(Vector3d vector)
Returns a new vector with the component values of the given vector.
|
static Matrix4d |
Matrix4d.create(Vector3d x,
Vector3d y,
Vector3d z,
Vector3d translation)
Constructs a matrix from the given vectors and the translation vector.
|
MVector3d |
Vector3d.crossProduct(Vector3d vector)
Returns the cross product of this vector and the given vector.
|
void |
MVector3d.crossProductInPlace(Vector3d vector)
Sets this vector to the cross product of this vector and the other
vector.
|
double |
Vector3d.distance(Vector3d vector)
Returns the distance between this vector and the given vector.
|
double |
Vector3d.distanceSquared(Vector3d vector)
Returns the squared distance between this vector and the given vector.
|
double |
Vector3d.dotProduct(Vector3d vector)
Returns the dot product of this vector and the given vector.
|
boolean |
Vector3d.equalsWithTolerance(Vector3d vector,
double tolerance)
Returns true if this vector is within tolerance of the given vector.
|
MVector3d |
Vector3d.interpolate(Vector3d vector,
double alpha)
Interpolates linearly between this vector and the given vector and returns the resulting vector.
|
void |
MVector3d.interpolateInPlace(Vector3d vector,
double alpha)
Interpolates linearly between this vector and the given vector and places
the result in this vector (this = (1 - alpha) * this + alpha * vector).
|
Optional<Vector3d> |
Vector3d.project(Vector3d vector)
Returns an orthogonal projection of this vector on the given vector if it exists.
|
void |
MVector3d.set(Vector3d vector)
Sets the value of this vector to the value of the given vector.
|
void |
MMatrix4d.setColumn(int column,
Vector3d vector)
Sets the specified column with the x,y,z values received from the vector.
|
void |
MMatrix4d.setEuler(Vector3d euler)
Sets the rotational component (upper 3x3) of this transform to the
rotation matrix converted from the Euler angles provided; the other
non-rotational elements are set as if this were an identity matrix.
|
void |
MMatrix4d.setRotation(Vector3d x,
Vector3d y,
Vector3d z)
Sets the rotation (and scaling) based on the vectors given.
|
void |
MMatrix4d.setTranslation(Vector3d translationComponent)
Sets the translation component of this matrix based on a vector.
|
MVector3d |
Vector3d.subtract(Vector3d vector)
Returns the difference between this vector and the given vector.
|
void |
MVector3d.subtractInPlace(Vector3d vector)
Subtracts the given vector from this vector.
|
MVector3d |
Matrix4d.transform(Vector3d vector)
Returns a copy of the given vector transformed by this matrix.
|
MVector3d |
Matrix4d.transformNormal(Vector3d normal)
Transforms the normal of this matrix by getting the normals of the
inputed parameter.
|
Modifier and Type | Method and Description |
---|---|
static MVector3d |
Vector3d.centroidOf(Collection<? extends Vector3d> vectors)
Returns the centroid (the average vector) of the given collection of
vectors.
|
static List<MVector2d> |
MVector2d.to2dVectors(List<? extends Vector3d> vectors)
Returns the vectors in the given list projected to the XY-plane.
|
static List<Vector2d> |
Vector2d.to2dVectors(List<? extends Vector3d> vectors)
Returns the vectors in the given list projected to the XY-plane.
|
Collection<MVector3d> |
Matrix4d.transform(Collection<? extends Vector3d> points)
Transforms the points with the transformation matrix.
|
Modifier and Type | Method and Description |
---|---|
Iterable<Vector3d> |
TriangleMesh.getPoints()
Returns an iterable of all the vertices of all the triangles in the
TriangleMesh . |
Collection<Vector3d> |
TriangleMesh.toPointCollection()
Returns a new collection containing all the vertices of all the triangles in this
TriangleMesh . |
Modifier and Type | Method and Description |
---|---|
boolean |
TriangleMesh.encloses(Vector3d point)
Returns true if the
TriangleMesh is closed and the given point is inside this TriangleMesh . |
Optional<Segment2d> |
TriangleMesh.shortest2dPathInXYPlaneProjectionTo(Vector3d point)
Returns the shortest 2D path from the projection of this
TriangleMesh to the projection of a
point in the XY-plane, if such path exists. |
Optional<Segment3d> |
TriangleMesh.shortestHorizontalPathTo(Vector3d point)
Returns the shortest horizontal path from this
TriangleMesh to a point, if such path exists. |
Optional<Segment3d> |
TriangleMesh.shortestPathTo(Vector3d point)
Returns the shortest path from this
TriangleMesh to a given point, if such path exists. |
Optional<Segment3d> |
TriangleMesh.shortestVerticalPathTo(Vector3d point)
Returns the shortest vertical path from this
TriangleMesh to a point, if such path exists. |
Modifier and Type | Method and Description |
---|---|
Vector3d |
Line3d.getDirection()
Returns the normalized direction vector of this line.
|
Vector3d |
Ray3d.getDirection()
Returns the direction of this ray.
|
Vector3d |
Segment3d.getEndPoint()
Returns the ending point of this Segment.
|
Vector3d |
Line3d.getFirstPoint()
Returns the first bootstrapping point of this line.
|
Vector3d |
Triangle3d.getFirstPoint()
Returns the first point of the triangle.
|
Vector3d |
AABB3d.getLowerBound()
Returns the lower bound of this bounding box.
|
Vector3d |
Plane.getNormal()
Returns the normal of the plane.
|
Vector3d |
Ray3d.getOrigin()
Returns the origin of this ray.
|
Vector3d |
Plane.getPoint()
Returns a point on the plane used to define the plane.
|
Vector3d |
Line3d.getSecondPoint()
Returns the second bootstrapping point of this line.
|
Vector3d |
Triangle3d.getSecondPoint()
Returns the second point of the triangle.
|
Vector3d |
Segment3d.getStartPoint()
Returns the starting point of this Segment.
|
Vector3d |
Triangle3d.getThirdPoint()
Returns the third point of the triangle.
|
Vector3d |
AABB3d.getUpperBound()
Returns the upper bound of this bounding box.
|
Modifier and Type | Method and Description |
---|---|
List<Vector3d> |
Polygon3d.getVertices()
Returns the vertices in this polygon.
|
Modifier and Type | Method and Description |
---|---|
MVector3d |
Segment3d.closestPointTo(Vector3d point)
Returns the point on this Segment that is closest to the given point.
|
boolean |
AABB3d.contains(Vector3d point)
Returns true if the given point is inside this bounding box.
|
boolean |
Polygon3d.contains(Vector3d point)
Returns true if the given point is inside this polygon.
|
boolean |
Segment3d.contains(Vector3d point)
Returns true if the given point lies on this Segment, otherwise returns
false.
|
boolean |
Plane.contains(Vector3d point,
double tolerance)
Checks if the distance of the given point for this plane is less than the
given tolerance.
|
static AABB3d |
AABB3d.create(Vector3d lowerBound,
Vector3d upperBound)
Returns a bounding box with the given bounds.
|
static Line3d |
Line3d.create(Vector3d firstPoint,
Vector3d secondPoint)
Creates a new instance.
|
static MAABB3d |
MAABB3d.create(Vector3d lowerBound,
Vector3d upperBound)
Returns a bounding box with the given bounds.
|
static MLine3d |
MLine3d.create(Vector3d firstPoint,
Vector3d secondPoint)
Creates a new instance.
|
static MPlane |
MPlane.create(Vector3d point,
Vector3d normalVector)
Creates an instance of MPlane.
|
static MRay3d |
MRay3d.create(Vector3d origin,
Vector3d direction)
Returns a ray with the given origin and direction.
|
static MSegment3d |
MSegment3d.create(Vector3d startPoint,
Vector3d endPoint)
Creates an instance.
|
static Plane |
Plane.create(Vector3d pointOnPlane,
Vector3d planeNormal)
Returns the plane defined by the given points.
|
static Ray3d |
Ray3d.create(Vector3d origin,
Vector3d direction)
Returns a ray with the given origin and direction.
|
static Segment3d |
Segment3d.create(Vector3d startPoint,
Vector3d endPoint)
Creates an instance.
|
static MTriangle3d |
MTriangle3d.create(Vector3d firstPoint,
Vector3d secondPoint,
Vector3d thirdPoint)
Creates a new instance.
|
static Triangle3d |
Triangle3d.create(Vector3d firstPoint,
Vector3d secondPoint,
Vector3d thirdPoint)
Creates a new instance.
|
double |
Plane.distance(Vector3d point)
Calculates the distance of this plane from the given point.
|
double |
Segment3d.distance(Vector3d point)
Returns the minimum distance between this Segment and the given point.
|
double |
Plane.distanceSquared(Vector3d point)
Calculates the distance of this plane from the given point squared.
|
double |
Segment3d.distanceSquared(Vector3d point)
Returns the square of the minimum distance between this Segment and the
given point.
|
void |
MAABB3d.extend(Vector3d point)
Extends this axis-aligned bounding box to contain the given point.
|
MVector3d |
Plane.project(Vector3d point)
Projects the given point onto this plane performing an orthogonal
projection.
|
Optional<MVector3d> |
Plane.project(Vector3d point,
Vector3d direction)
Projects the given point onto this plane in the direction of the given
direction vector.
|
void |
MAABB3d.set(Vector3d lowerBound,
Vector3d upperBound)
Sets the given bounds to this bounding box.
|
void |
MLine3d.set(Vector3d startPoint,
Vector3d endPoint)
Sets the start and end points of this line.
|
void |
MSegment3d.set(Vector3d startPoint,
Vector3d endPoint)
Sets the start and end points of this Segment.
|
void |
MRay3d.setDirection(Vector3d direction)
Sets the direction of this ray.
|
void |
MLine3d.setEndPoint(Vector3d endPoint)
Sets the end point of this line to the value of the given point.
|
void |
MSegment3d.setEndPoint(Vector3d endPoint)
Sets the end point of this Segment to the value of the given point.
|
void |
MTriangle3d.setFirstPoint(Vector3d firstPoint)
Sets the first point of this triangle to the value of the given point.
|
void |
MAABB3d.setLowerBound(Vector3d lowerBound)
Sets the lower bound of this bounding box to the given value.
|
void |
MPlane.setNormal(Vector3d vector)
Sets the plane normal vector to the given vector.
|
void |
MRay3d.setOrigin(Vector3d origin)
Sets the origin of this ray.
|
void |
MPlane.setPoint(Vector3d point)
Sets the plane point to the given point.
|
void |
MTriangle3d.setPoints(Vector3d firstPoint,
Vector3d secondPoint,
Vector3d thirdPoint)
Sets the given points to the triangle.
|
void |
MTriangle3d.setSecondPoint(Vector3d secondPoint)
Sets the second point of this triangle to the value of the given point.
|
void |
MLine3d.setStartPoint(Vector3d startPoint)
Sets the starting point of this line to the value of the given point.
|
void |
MSegment3d.setStartPoint(Vector3d startPoint)
Sets the starting point of this Segment to the value of the given point.
|
void |
MTriangle3d.setThirdPoint(Vector3d thirdPoint)
Sets the third point of this triangle to the value of the given point.
|
void |
MAABB3d.setUpperBound(Vector3d upperBound)
Sets the upper bound of this bounding box to the given value.
|
double |
Plane.signedDistance(Vector3d point)
Calculates the signed distance of this plane from the given point.
|
Optional<Double> |
Plane.signedDistance(Vector3d point,
Vector3d direction)
Calculates the signed distance of this plane from the given point with
some direction vector.
|
void |
MAABB3d.translate(Vector3d translator)
Translates this bounding box by the given vector.
|
void |
MPolygon3d.translate(Vector3d translator)
Translates this polygon by the given vector.
|
Modifier and Type | Method and Description |
---|---|
static AABB3d |
AABB3d.create(Collection<Vector3d> points)
Returns the minimum volume axis-aligned bounding box for the given
collection of points.
|
static MAABB3d |
MAABB3d.create(Collection<Vector3d> points)
Returns the minimum volume axis-aligned bounding box for the given
collection of points.
|
static MPolygon3d |
MPolygon3d.create(List<? extends Vector3d> vertices)
Creates a polygon with the given vertices.
|
static MRectangle3d |
MRectangle3d.create(List<? extends Vector3d> vertices)
Creates a new instance from the given points.
|
static MTriangle3d |
MTriangle3d.create(List<? extends Vector3d> points)
Creates a new instance.
|
static Polygon3d |
Polygon3d.create(List<? extends Vector3d> vertices)
Creates a polygon with the given vertices.
|
static Rectangle3d |
Rectangle3d.create(List<? extends Vector3d> vertices)
Creates a new instance from the given points.
|
static Triangle3d |
Triangle3d.create(List<? extends Vector3d> points)
Creates a new instance.
|
void |
MAABB3d.extend(Collection<Vector3d> points)
Extends this axis-aligned bounding box to contain the given points.
|
boolean |
MRectangle3d.setPoints(List<? extends Vector3d> points)
Sets the given points to the rectangle.
|
Modifier and Type | Method and Description |
---|---|
Optional<Double> |
Component.distance(Vector3d point)
Returns the minimum 3d distance between the surface of this
Component and a given point, if it exists. |
Optional<Double> |
Component.horizontalDistance(Vector3d point)
Returns the horizontal distance between the surface of this
Component and a point, if it exists. |
Optional<Double> |
Component.projectionOnXYPlaneDistance(Vector3d other)
Returns the 2d distance between the projections of this
Component and point on the XY-plane,
if it exists. |
Optional<Double> |
Component.verticalDistance(Vector3d point)
Returns the vertical distance between the surface of this
Component and a point, if it exists. |
Modifier and Type | Method and Description |
---|---|
Vector3d |
Flight.getBottomCenterPoint()
Returns the 2D center point of the flight bottom segment.
|
Vector3d |
Flight.getBottomDirection()
Returns the 2D direction vector towards where the flight's bottom end is pointing at.
|
Vector3d |
Door.getReferenceDirection()
Returns a direction vector of unit length that defines the hinge side and opening direction of the door.
|
Vector3d |
Flight.getTopCenterPoint()
Returns the 2D center point of the flight top segment.
|
Vector3d |
Flight.getTopDirection()
Returns the 2D direction vector towards where the flight's top end is pointing at.
|
Modifier and Type | Method and Description |
---|---|
List<Vector3d> |
Points.getVertices()
Return points to visualize.
|
Modifier and Type | Method and Description |
---|---|
static Bitmap |
Bitmap.create(ARGBColor color,
BufferedImage image,
Vector3d normal,
Vector3d up,
Vector3d location,
double width,
double height)
Creates a bitmap visualization.
|
static Text |
Text.create(ARGBColor color,
Vector3d normal,
Vector3d up,
Vector3d location,
double horizontalScaling,
double verticalScaling,
String text,
float size)
Creates a text visualization without any affine transformation (identity transformation).
|
static Bitmap |
Bitmap.create(BufferedImage image,
Vector3d normal,
Vector3d up,
Vector3d location,
double width,
double height)
Creates a bitmap visualization.
|
static List<VisualizationItem> |
VisualizationItem.createAngle(Vector3d origin,
Vector3d firstDirection,
Vector3d secondDirection)
Creates an angle visualization with the degrees shown between the two direction segments.
|
static List<VisualizationItem> |
VisualizationItem.createDimension(Vector3d startPoint,
Vector3d endPoint)
Creates a dimension visualization.
|
Modifier and Type | Method and Description |
---|---|
static Points |
Points.create(ARGBColor color,
Collection<Vector3d> points,
float pointSize)
Creates visualization of points.
|
static Lines |
Lines.create(ARGBColor color,
List<Vector3d> sequenceOfPoints,
Lines.LinePattern linePattern,
float lineThickness)
Creates visualization of segments connecting the given sequence of points.
|
Copyright © 2019 Solibri, Inc.. All rights reserved.