Uses of Interface
com.solibri.geometry.linearalgebra.Vector2d
Packages that use Vector2d
Package
Description
-
Uses of Vector2d in com.solibri.geometry.algorithms
Method parameters in com.solibri.geometry.algorithms with type arguments of type Vector2dModifier and TypeMethodDescriptionstatic MPolygon2dConvexHull.of(Collection<? extends Vector2d> points)Returns the convex hull of the given collection of points.static MRectangle2dMinimumAreaRectangle.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
Subinterfaces of Vector2d in com.solibri.geometry.linearalgebraModifier and TypeInterfaceDescriptioninterfaceInterface for handling vectors in the XY-plane.Fields in com.solibri.geometry.linearalgebra declared as Vector2dModifier and TypeFieldDescriptionstatic Vector2dVector2d.NEG_UNIT_XThe vector (-1, 0).static Vector2dVector2d.NEG_UNIT_YThe vector (0, -1).static Vector2dVector2d.UNIT_XThe vector (1, 0).static Vector2dVector2d.UNIT_YThe vector (0, 1).static Vector2dVector2d.ZEROThe vector (0, 0).Methods in com.solibri.geometry.linearalgebra that return Vector2dModifier and TypeMethodDescriptionstatic Vector2dVector2d.create(double x, double y)Returns a 2-dimensional vector with the given component values.static Vector2dReturns a 2-dimensional vector with the X and Y values set to those of the given vector.Methods in com.solibri.geometry.linearalgebra that return types with arguments of type Vector2dModifier and TypeMethodDescriptionVector2d.to2dVectors(List<? extends Vector3d> vectors)Returns the vectors in the given list projected to the XY-plane.Methods in com.solibri.geometry.linearalgebra with parameters of type Vector2dModifier and TypeMethodDescriptionReturns the sum of this vector and the given vector.voidMVector2d.addInPlace(Vector2d vec)Adds the given vector to this vector in place.doubleReturns the minimum angle between this vector and the given vector.static MVector2dReturns a 2-dimensional vector with the X and Y values set to those of the given vector.static Vector2dReturns a 2-dimensional vector with the X and Y values set to those of the given vector.doubleReturns the distance between this vector and the other vector in the XY-plane.doubleVector2d.distanceSquared(Vector2d other)Returns the square of the distance between this vector and the other vector in the XY-plane.doubleVector2d.dotProduct(Vector2d vector)Returns the dot product between this vector and the given vector.booleanVector2d.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).voidMVector2d.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).voidSets 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.voidMVector2d.subtractInPlace(Vector2d other)Subtracts in place the given vector from this vector.Method parameters in com.solibri.geometry.linearalgebra with type arguments of type Vector2dModifier 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
Methods in com.solibri.geometry.primitive2d that return Vector2dModifier 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.Methods in com.solibri.geometry.primitive2d that return types with arguments of type Vector2dModifier and TypeMethodDescriptionAABB2d.getVertices()Returns the vertices of this bounding box in counter clockwise order.Polygon2d.getVertices()Returns the vertices of this polygon.Methods in com.solibri.geometry.primitive2d with parameters of type Vector2dModifier and TypeMethodDescriptionSegment2d.closestPointTo(Vector2d point)Returns the point on this segment that is closest to the given point in the XY-plane.booleanReturns true if the given point is inside this bounding box.booleanChecks if the area contains the given point.booleanReturns true if the given point is inside this polygon.booleanReturns true if the given point lies on this segment in the XY-plane, otherwise returns false.static AABB2dReturns a bounding box with the given bounds.static Line2dCreates a new instance.static MAABB2dReturns a bounding box with the given bounds.static MLine2dCreates a new instance.static MRay2dReturns a ray with the given origin and direction.static MSegment2dCreates an new instance.static MTriangle2dCreates a new instance.static Ray2dReturns a ray with the given origin and direction.static Segment2dCreates an new instance.static Triangle2dCreates a new instance.doubleReturns the distance of a point from this line.default doubleReturns the distance between this polygon and the given point.doubleReturns the minimum distance between this segment and the point in the XY-plane.doubleLine2d.distanceSquared(Vector2d point)Returns the squared distance of a point from this line.doublePolygon2d.distanceSquared(Vector2d point)Returns the square of the distance between this polygon and the given point.doubleSegment2d.distanceSquared(Vector2d point)Returns the square of the minimum distance between this segment and the point in the XY-plane.voidExtends this axis-aligned bounding box to contain the given point.booleanLine2d.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.booleanLine2d.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.voidSets the given bounds to this bounding box.voidSets the start and end points of this line.voidSets the start and end points of this Segment.voidMRay2d.setDirection(Vector2d direction)Sets the direction of this ray.voidMLine2d.setEndPoint(Vector2d endPoint)Sets the end point of this line to the value of the given point.voidMSegment2d.setEndPoint(Vector2d endPoint)Sets the end point of this Segment to the value of the given point.voidMTriangle2d.setFirstPoint(Vector2d firstPoint)Sets the first point of this triangle to the value of the given point.voidMAABB2d.setLowerBound(Vector2d lowerBound)Sets the lower bound of this bounding box to the given value.voidSets the origin of this ray.voidSets the given points to the triangle.voidMTriangle2d.setSecondPoint(Vector2d secondPoint)Sets the second point of this triangle to the value of the given point.voidMLine2d.setStartPoint(Vector2d startPoint)Sets the starting point of this line to the value of the given point.voidMSegment2d.setStartPoint(Vector2d startPoint)Sets the starting point of this Segment to the value of the given point.voidMTriangle2d.setThirdPoint(Vector2d thirdPoint)Sets the third point of this triangle to the value of the given point.voidMAABB2d.setUpperBound(Vector2d upperBound)Sets the upper bound of this bounding box to the given value.voidTranslates this bounding box by the given vector.voidTranslates the polygon by the given vector in the XY-plane.Method parameters in com.solibri.geometry.primitive2d with type arguments of type Vector2dModifier and TypeMethodDescriptionstatic AABB2dAABB2d.create(Collection<Vector2d> points)Returns the minimum area axis-aligned bounding box for the given collection of points.static AreaCreates an area with the given polygon points.static MAABB2dMAABB2d.create(Collection<Vector2d> points)Returns the minimum area axis-aligned bounding box for the given collection of points.static MAreaCreates an area with the given polygon points.static MPolygon2dCreates a 2-dimensional polygon with the given vertices.static MRectangle2dCreates a new instance from the given points.static MTriangle2dCreates a new instance.static Polygon2dCreates a 2-dimensional polygon with the given vertices.static Rectangle2dCreates a new instance from the given points.static Triangle2dCreates a new instance.voidMAABB2d.extend(Collection<Vector2d> points)Extends this axis-aligned bounding box to contain the given points.booleanSets the given points to the rectangle.