Uses of Interface
com.solibri.geometry.linearalgebra.Vector2d
| Package | Description |
|---|---|
| com.solibri.geometry.algorithms | |
| com.solibri.geometry.linearalgebra | |
| com.solibri.geometry.primitive2d |
-
Uses of Vector2d in com.solibri.geometry.algorithms
Method parameters in com.solibri.geometry.algorithms with type arguments of type Vector2d Modifier and Type Method Description static 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.linearalgebra Modifier and Type Interface Description interfaceMVector2dInterface for handling vectors in the XY-plane.Fields in com.solibri.geometry.linearalgebra declared as Vector2d Modifier and Type Field Description static 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 Vector2d Modifier and Type Method Description static Vector2dVector2d. create(double x, double y)Returns a 2-dimensional vector with the given component values.static Vector2dVector2d. create(Vector2d vec)Returns 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 Vector2d Modifier and Type Method Description static List<Vector2d>Vector2d. 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 Vector2d Modifier and Type Method Description MVector2dVector2d. add(Vector2d vector)Returns the sum of this vector and the given vector.voidMVector2d. addInPlace(Vector2d vec)Adds the given vector to this vector in place.doubleVector2d. angle(Vector2d vector)Returns the minimum angle between this vector and the given vector.static MVector2dMVector2d. create(Vector2d vec)Returns a 2-dimensional vector with the X and Y values set to those of the given vector.static Vector2dVector2d. create(Vector2d vec)Returns a 2-dimensional vector with the X and Y values set to those of the given vector.doubleVector2d. distance(Vector2d other)Returns 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.MVector2dVector2d. 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).voidMVector2d. set(Vector2d vec)Sets the X and Y components of this vector to the values of the given vector.MVector2dVector2d. subtract(Vector2d 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 Vector2d Modifier and Type Method 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. -
Uses of Vector2d in com.solibri.geometry.primitive2d
Methods in com.solibri.geometry.primitive2d that return Vector2d Modifier and Type Method Description Vector2dLine2d. getDirection()Returns the normalized direction vector of this line.Vector2dRay2d. getDirection()Returns the direction of this ray.Vector2dSegment2d. getEndPoint()Returns the end of the segment in the XY-plane.Vector2dLine2d. getFirstPoint()Returns the first bootstrapping point of this line.Vector2dTriangle2d. getFirstPoint()Returns the first point of the triangle.Vector2dAABB2d. getLowerBound()Returns the lower bound of this bounding box.Vector2dRay2d. getOrigin()Returns the origin of this ray.Vector2dLine2d. getSecondPoint()Returns the second bootstrapping point of this line.Vector2dTriangle2d. getSecondPoint()Returns the second point of the triangle.Vector2dSegment2d. getStartPoint()Returns the beginning of the segment in the XY-plane.Vector2dTriangle2d. getThirdPoint()Returns the third point of the triangle.Vector2dAABB2d. getUpperBound()Returns the upper bound of this bounding box.Methods in com.solibri.geometry.primitive2d that return types with arguments of type Vector2d Modifier and Type Method 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.Methods in com.solibri.geometry.primitive2d with parameters of type Vector2d Modifier and Type Method Description MVector2dSegment2d. closestPointTo(Vector2d point)Returns the point on this segment that is closest to the given point in the XY-plane.booleanAABB2d. contains(Vector2d point)Returns true if the given point is inside this bounding box.booleanArea. contains(Vector2d point)Checks if the area contains the given point.booleanPolygon2d. contains(Vector2d point)Returns true if the given point is inside this polygon.booleanSegment2d. contains(Vector2d point)Returns true if the given point lies on this segment in the XY-plane, otherwise returns false.static AABB2dAABB2d. create(Vector2d lowerBound, Vector2d upperBound)Returns a bounding box with the given bounds.static Line2dLine2d. create(Vector2d firstPoint, Vector2d secondPoint)Creates a new instance.static MAABB2dMAABB2d. create(Vector2d lowerBound, Vector2d upperBound)Returns a bounding box with the given bounds.static MLine2dMLine2d. create(Vector2d firstPoint, Vector2d secondPoint)Creates a new instance.static MRay2dMRay2d. create(Vector2d origin, Vector2d direction)Returns a ray with the given origin and direction.static MSegment2dMSegment2d. create(Vector2d startPoint, Vector2d endPoint)Creates an new instance.static MTriangle2dMTriangle2d. create(Vector2d firstPoint, Vector2d secondPoint, Vector2d thirdPoint)Creates a new instance.static Ray2dRay2d. create(Vector2d origin, Vector2d direction)Returns a ray with the given origin and direction.static Segment2dSegment2d. create(Vector2d startPoint, Vector2d endPoint)Creates an new instance.static Triangle2dTriangle2d. create(Vector2d firstPoint, Vector2d secondPoint, Vector2d thirdPoint)Creates a new instance.doubleLine2d. distance(Vector2d point)Returns the distance of a point from this line.default doublePolygon2d. distance(Vector2d point)Returns the distance between this polygon and the given point.doubleSegment2d. distance(Vector2d point)Returns 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.voidMAABB2d. extend(Vector2d point)Extends 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.MVector2dLine2d. project(Vector2d point)Returns the projection of the given point onto this line.voidMAABB2d. set(Vector2d lowerBound, Vector2d upperBound)Sets the given bounds to this bounding box.voidMLine2d. set(Vector2d startPoint, Vector2d endPoint)Sets the start and end points of this line.voidMSegment2d. set(Vector2d startPoint, Vector2d endPoint)Sets 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.voidMRay2d. setOrigin(Vector2d origin)Sets the origin of this ray.voidMTriangle2d. setPoints(Vector2d firstPoint, Vector2d secondPoint, Vector2d thirdPoint)Sets 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.voidMAABB2d. translate(Vector2d translator)Translates this bounding box by the given vector.voidMPolygon2d. translate(Vector2d translator)Translates the polygon by the given vector in the XY-plane.Method parameters in com.solibri.geometry.primitive2d with type arguments of type Vector2d Modifier and Type Method Description static AABB2dAABB2d. create(Collection<Vector2d> points)Returns the minimum area axis-aligned bounding box for the given collection of points.static AreaArea. create(List<? extends Vector2d> polygonPoints)Creates 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 MAreaMArea. create(List<? extends Vector2d> polygonPoints)Creates an area with the given polygon points.static MPolygon2dMPolygon2d. create(List<? extends Vector2d> vertices)Creates a 2-dimensional polygon with the given vertices.static MRectangle2dMRectangle2d. create(List<? extends Vector2d> vertices)Creates a new instance from the given points.static MTriangle2dMTriangle2d. create(List<? extends Vector2d> points)Creates a new instance.static Polygon2dPolygon2d. create(List<? extends Vector2d> vertices)Creates a 2-dimensional polygon with the given vertices.static Rectangle2dRectangle2d. create(List<? extends Vector2d> vertices)Creates a new instance from the given points.static Triangle2dTriangle2d. create(List<? extends Vector2d> points)Creates a new instance.voidMAABB2d. extend(Collection<Vector2d> points)Extends this axis-aligned bounding box to contain the given points.booleanMRectangle2d. setPoints(List<? extends Vector2d> points)Sets the given points to the rectangle.