Package | Description |
---|---|
com.solibri.geometry.algorithms | |
com.solibri.geometry.linearalgebra | |
com.solibri.geometry.primitive2d |
Modifier and Type | Method and Description |
---|---|
static MPolygon2d |
ConvexHull.of(Collection<? extends Vector2d> points)
Returns the convex hull of the given collection of points.
|
static MRectangle2d |
MinimumAreaRectangle.of(Collection<? extends Vector2d> points)
Returns the minimum area oriented rectangle that surrounds the given collection of
points.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MVector2d
Interface for handling vectors in the XY-plane.
|
Modifier and Type | Field and Description |
---|---|
static Vector2d |
Vector2d.NEG_UNIT_X
The vector (-1, 0).
|
static Vector2d |
Vector2d.NEG_UNIT_Y
The vector (0, -1).
|
static Vector2d |
Vector2d.UNIT_X
The vector (1, 0).
|
static Vector2d |
Vector2d.UNIT_Y
The vector (0, 1).
|
static Vector2d |
Vector2d.ZERO
The vector (0, 0).
|
Modifier and Type | Method and Description |
---|---|
static Vector2d |
Vector2d.create(double x,
double y)
Returns a 2-dimensional vector with the given component values.
|
static Vector2d |
Vector2d.create(Vector2d vec)
Returns a 2-dimensional vector with the X and Y values set to those of
the given vector.
|
Modifier and Type | Method and Description |
---|---|
static List<Vector2d> |
Vector2d.to2dVectors(List<? extends Vector3d> vectors)
Returns the vectors in the given list projected to the XY-plane.
|
Modifier and Type | Method and Description |
---|---|
MVector2d |
Vector2d.add(Vector2d vector)
Returns the sum of this vector and the given vector.
|
void |
MVector2d.addInPlace(Vector2d vec)
Adds the given vector to this vector in place.
|
double |
Vector2d.angle(Vector2d vector)
Returns the minimum angle between this vector and the given vector.
|
static MVector2d |
MVector2d.create(Vector2d vec)
Returns a 2-dimensional vector with the X and Y values set to those of
the given vector.
|
static Vector2d |
Vector2d.create(Vector2d vec)
Returns a 2-dimensional vector with the X and Y values set to those of
the given vector.
|
double |
Vector2d.distance(Vector2d other)
Returns the distance between this vector and the other vector in the
XY-plane.
|
double |
Vector2d.distanceSquared(Vector2d other)
Returns the square of the distance between this vector and the other
vector in the XY-plane.
|
double |
Vector2d.dotProduct(Vector2d vector)
Returns the dot product between this vector and the given vector.
|
boolean |
Vector2d.equalsWithTolerance(Vector2d other,
double tolerance)
Returns true if this vector is within distance of tolerance to other.
|
MVector2d |
Vector2d.interpolate(Vector2d vector,
double alpha)
Returns a vector that is the interpolation between this vector and the
given vector so that the weight of the given vector is alpha (result is (1 -
alpha) * this + alpha * vector).
|
void |
MVector2d.interpolateInPlace(Vector2d vector,
double alpha)
Sets this vector to be the interpolation between this vector and the
given vector so that the weight of the given vector is alpha (this = (1 -
alpha) * this + alpha * vector).
|
void |
MVector2d.set(Vector2d vec)
Sets the X and Y components of this vector to the values of the given
vector.
|
MVector2d |
Vector2d.subtract(Vector2d vector)
Returns the difference of this vector and the given vector.
|
void |
MVector2d.subtractInPlace(Vector2d other)
Subtracts in place the given vector from this vector.
|
Modifier and Type | Method and Description |
---|---|
static List<MVector3d> |
MVector3d.to3dVectors(List<? extends Vector2d> vectors)
Returns a list of 3-dimensional vectors with the X and Y components from
the given vectors and the Z component set to 0.
|
Modifier and Type | Method and Description |
---|---|
Vector2d |
Line2d.getDirection()
Returns the normalized direction vector of this line.
|
Vector2d |
Ray2d.getDirection()
Returns the direction of this ray.
|
Vector2d |
Segment2d.getEndPoint()
Returns the end of the segment in the XY-plane.
|
Vector2d |
Line2d.getFirstPoint()
Returns the first bootstrapping point of this line.
|
Vector2d |
Triangle2d.getFirstPoint()
Returns the first point of the triangle.
|
Vector2d |
AABB2d.getLowerBound()
Returns the lower bound of this bounding box.
|
Vector2d |
Ray2d.getOrigin()
Returns the origin of this ray.
|
Vector2d |
Line2d.getSecondPoint()
Returns the second bootstrapping point of this line.
|
Vector2d |
Triangle2d.getSecondPoint()
Returns the second point of the triangle.
|
Vector2d |
Segment2d.getStartPoint()
Returns the beginning of the segment in the XY-plane.
|
Vector2d |
Triangle2d.getThirdPoint()
Returns the third point of the triangle.
|
Vector2d |
AABB2d.getUpperBound()
Returns the upper bound of this bounding box.
|
Modifier and Type | Method and Description |
---|---|
List<Vector2d> |
AABB2d.getVertices()
Returns the vertices of this bounding box in counter clockwise order.
|
List<Vector2d> |
Polygon2d.getVertices()
Returns the vertices of this polygon.
|
Modifier and Type | Method and Description |
---|---|
MVector2d |
Segment2d.closestPointTo(Vector2d point)
Returns the point on this segment that is closest to the given point in
the XY-plane.
|
boolean |
AABB2d.contains(Vector2d point)
Returns true if the given point is inside this bounding box.
|
boolean |
Area.contains(Vector2d point)
Checks if the area contains the given point.
|
boolean |
Polygon2d.contains(Vector2d point)
Returns true if the given point is inside this polygon.
|
boolean |
Segment2d.contains(Vector2d point)
Returns true if the given point lies on this segment in the XY-plane,
otherwise returns false.
|
static AABB2d |
AABB2d.create(Vector2d lowerBound,
Vector2d upperBound)
Returns a bounding box with the given bounds.
|
static Line2d |
Line2d.create(Vector2d firstPoint,
Vector2d secondPoint)
Creates a new instance.
|
static MAABB2d |
MAABB2d.create(Vector2d lowerBound,
Vector2d upperBound)
Returns a bounding box with the given bounds.
|
static MLine2d |
MLine2d.create(Vector2d firstPoint,
Vector2d secondPoint)
Creates a new instance.
|
static MRay2d |
MRay2d.create(Vector2d origin,
Vector2d direction)
Returns a ray with the given origin and direction.
|
static MSegment2d |
MSegment2d.create(Vector2d startPoint,
Vector2d endPoint)
Creates an new instance.
|
static Ray2d |
Ray2d.create(Vector2d origin,
Vector2d direction)
Returns a ray with the given origin and direction.
|
static Segment2d |
Segment2d.create(Vector2d startPoint,
Vector2d endPoint)
Creates an new instance.
|
static MTriangle2d |
MTriangle2d.create(Vector2d firstPoint,
Vector2d secondPoint,
Vector2d thirdPoint)
Creates a new instance.
|
static Triangle2d |
Triangle2d.create(Vector2d firstPoint,
Vector2d secondPoint,
Vector2d thirdPoint)
Creates a new instance.
|
double |
Line2d.distance(Vector2d point)
Returns the distance of a point from this line.
|
default double |
Polygon2d.distance(Vector2d point)
Returns the distance between this polygon and the given point.
|
double |
Segment2d.distance(Vector2d point)
Returns the minimum distance between this segment and the point in the
XY-plane.
|
double |
Line2d.distanceSquared(Vector2d point)
Returns the squared distance of a point from this line.
|
double |
Polygon2d.distanceSquared(Vector2d point)
Returns the square of the distance between this polygon and the given
point.
|
double |
Segment2d.distanceSquared(Vector2d point)
Returns the square of the minimum distance between this segment and the
point in the XY-plane.
|
void |
MAABB2d.extend(Vector2d point)
Extends this axis-aligned bounding box to contain the given point.
|
boolean |
Line2d.isPointOnLeftSide(Vector2d point)
Returns true if the given point is on the left side of this line when
looking in the direction of the vector returned by the
Line2d.getDirection() method. |
boolean |
Line2d.isPointOnRightSide(Vector2d point)
Returns true if the given point is on the right side of this line when
looking in the direction of the vector returned by the
Line2d.getDirection() method. |
MVector2d |
Line2d.project(Vector2d point)
Returns the projection of the given point onto this line.
|
void |
MAABB2d.set(Vector2d lowerBound,
Vector2d upperBound)
Sets the given bounds to this bounding box.
|
void |
MLine2d.set(Vector2d startPoint,
Vector2d endPoint)
Sets the start and end points of this line.
|
void |
MSegment2d.set(Vector2d startPoint,
Vector2d endPoint)
Sets the start and end points of this Segment.
|
void |
MRay2d.setDirection(Vector2d direction)
Sets the direction of this ray.
|
void |
MLine2d.setEndPoint(Vector2d endPoint)
Sets the end point of this line to the value of the given point.
|
void |
MSegment2d.setEndPoint(Vector2d endPoint)
Sets the end point of this Segment to the value of the given point.
|
void |
MTriangle2d.setFirstPoint(Vector2d firstPoint)
Sets the first point of this triangle to the value of the given point.
|
void |
MAABB2d.setLowerBound(Vector2d lowerBound)
Sets the lower bound of this bounding box to the given value.
|
void |
MRay2d.setOrigin(Vector2d origin)
Sets the origin of this ray.
|
void |
MTriangle2d.setPoints(Vector2d firstPoint,
Vector2d secondPoint,
Vector2d thirdPoint)
Sets the given points to the triangle.
|
void |
MTriangle2d.setSecondPoint(Vector2d secondPoint)
Sets the second point of this triangle to the value of the given point.
|
void |
MLine2d.setStartPoint(Vector2d startPoint)
Sets the starting point of this line to the value of the given point.
|
void |
MSegment2d.setStartPoint(Vector2d startPoint)
Sets the starting point of this Segment to the value of the given point.
|
void |
MTriangle2d.setThirdPoint(Vector2d thirdPoint)
Sets the third point of this triangle to the value of the given point.
|
void |
MAABB2d.setUpperBound(Vector2d upperBound)
Sets the upper bound of this bounding box to the given value.
|
void |
MAABB2d.translate(Vector2d translator)
Translates this bounding box by the given vector.
|
void |
MPolygon2d.translate(Vector2d translator)
Translates the polygon by the given vector in the XY-plane.
|
Modifier and Type | Method and Description |
---|---|
static AABB2d |
AABB2d.create(Collection<Vector2d> points)
Returns the minimum area axis-aligned bounding box for the given
collection of points.
|
static MAABB2d |
MAABB2d.create(Collection<Vector2d> points)
Returns the minimum area axis-aligned bounding box for the given
collection of points.
|
static Area |
Area.create(List<? extends Vector2d> polygonPoints)
Creates an area with the given polygon points.
|
static MArea |
MArea.create(List<? extends Vector2d> polygonPoints)
Creates an area with the given polygon points.
|
static MPolygon2d |
MPolygon2d.create(List<? extends Vector2d> vertices)
Creates a 2-dimensional polygon with the given vertices.
|
static MRectangle2d |
MRectangle2d.create(List<? extends Vector2d> vertices)
Creates a new instance from the given points.
|
static MTriangle2d |
MTriangle2d.create(List<? extends Vector2d> points)
Creates a new instance.
|
static Polygon2d |
Polygon2d.create(List<? extends Vector2d> vertices)
Creates a 2-dimensional polygon with the given vertices.
|
static Rectangle2d |
Rectangle2d.create(List<? extends Vector2d> vertices)
Creates a new instance from the given points.
|
static Triangle2d |
Triangle2d.create(List<? extends Vector2d> points)
Creates a new instance.
|
void |
MAABB2d.extend(Collection<Vector2d> points)
Extends this axis-aligned bounding box to contain the given points.
|
boolean |
MRectangle2d.setPoints(List<? extends Vector2d> points)
Sets the given points to the rectangle.
|
Copyright © 2019 Solibri, Inc.. All rights reserved.