Uses of Interface
com.solibri.geometry.linearalgebra.Vector2d
Package
Description
-
Uses of Vector2d in com.solibri.geometry.algorithms
Modifier and TypeMethodDescriptionstatic 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. -
Uses of Vector2d in com.solibri.geometry.linearalgebra
Modifier and TypeInterfaceDescriptioninterface
Interface for handling vectors in the XY-plane.Modifier and TypeFieldDescriptionstatic 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 TypeMethodDescriptionstatic Vector2d
Vector2d.create(double x, double y)
Returns a 2-dimensional vector with the given component values.static Vector2d
Returns a 2-dimensional vector with the X and Y values set to those of the given vector.Modifier and TypeMethodDescriptionVector2d.to2dVectors(List<? extends Vector3d> vectors)
Returns the vectors in the given list projected to the XY-plane.Modifier and TypeMethodDescriptionReturns the sum of this vector and the given vector.void
MVector2d.addInPlace(Vector2d vec)
Adds the given vector to this vector in place.double
Returns the minimum angle between this vector and the given vector.static MVector2d
Returns a 2-dimensional vector with the X and Y values set to those of the given vector.static Vector2d
Returns a 2-dimensional vector with the X and Y values set to those of the given vector.double
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.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
Sets the X and Y components of this vector to the values of the given 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 TypeMethodDescriptionMVector3d.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. -
Uses of Vector2d in com.solibri.geometry.primitive2d
Modifier and TypeMethodDescriptionLine2d.getDirection()
Returns the normalized direction vector of this line.Ray2d.getDirection()
Returns the direction of this ray.Segment2d.getEndPoint()
Returns the end of the segment in the XY-plane.Line2d.getFirstPoint()
Returns the first bootstrapping point of this line.Triangle2d.getFirstPoint()
Returns the first point of the triangle.AABB2d.getLowerBound()
Returns the lower bound of this bounding box.Ray2d.getOrigin()
Returns the origin of this ray.Line2d.getSecondPoint()
Returns the second bootstrapping point of this line.Triangle2d.getSecondPoint()
Returns the second point of the triangle.Segment2d.getStartPoint()
Returns the beginning of the segment in the XY-plane.Triangle2d.getThirdPoint()
Returns the third point of the triangle.AABB2d.getUpperBound()
Returns the upper bound of this bounding box.Modifier and TypeMethodDescriptionAABB2d.getVertices()
Returns the vertices of this bounding box in counter clockwise order.Polygon2d.getVertices()
Returns the vertices of this polygon.Modifier and TypeMethodDescriptionSegment2d.closestPointTo(Vector2d point)
Returns the point on this segment that is closest to the given point in the XY-plane.boolean
Returns true if the given point is inside this bounding box.boolean
Checks if the area contains the given point.boolean
Returns true if the given point is inside this polygon.boolean
Returns true if the given point lies on this segment in the XY-plane, otherwise returns false.static AABB2d
Returns a bounding box with the given bounds.static Line2d
Creates a new instance.static MAABB2d
Returns a bounding box with the given bounds.static MLine2d
Creates a new instance.static MRay2d
Returns a ray with the given origin and direction.static MSegment2d
Creates an new instance.static MTriangle2d
Creates a new instance.static Ray2d
Returns a ray with the given origin and direction.static Segment2d
Creates an new instance.static Triangle2d
Creates a new instance.double
Returns the distance of a point from this line.default double
Returns the distance between this polygon and the given point.double
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
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 theLine2d.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 theLine2d.getDirection()
method.Returns the projection of the given point onto this line.void
Sets the given bounds to this bounding box.void
Sets the start and end points of this line.void
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
Sets the origin of this ray.void
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
Translates this bounding box by the given vector.void
Translates the polygon by the given vector in the XY-plane.Modifier and TypeMethodDescriptionstatic AABB2d
AABB2d.create(Collection<Vector2d> points)
Returns the minimum area axis-aligned bounding box for the given collection of points.static Area
Creates an area with the given polygon points.static MAABB2d
MAABB2d.create(Collection<Vector2d> points)
Returns the minimum area axis-aligned bounding box for the given collection of points.static MArea
Creates an area with the given polygon points.static MPolygon2d
Creates a 2-dimensional polygon with the given vertices.static MRectangle2d
Creates a new instance from the given points.static MTriangle2d
Creates a new instance.static Polygon2d
Creates a 2-dimensional polygon with the given vertices.static Rectangle2d
Creates a new instance from the given points.static Triangle2d
Creates a new instance.void
MAABB2d.extend(Collection<Vector2d> points)
Extends this axis-aligned bounding box to contain the given points.boolean
Sets the given points to the rectangle.