Uses of Interface
com.solibri.geometry.linearalgebra.MVector2d
Packages that use MVector2d
-
Uses of MVector2d in com.solibri.geometry.linearalgebra
Methods in com.solibri.geometry.linearalgebra that return MVector2dModifier and TypeMethodDescriptionReturns the sum of this vector and the given vector.static MVector2d
MVector2d.create()
Returns a 2-dimensional vector with the X and Y values set to 0.static MVector2d
MVector2d.create
(double x, double y) Returns a 2-dimensional vector with the given component values.static MVector2d
Returns a 2-dimensional vector with the X and Y values set to those of the given vector.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).Vector2d.negate()
Returns a negated copy of this vector.Vector2d.normalize()
Returns a normalized copy of this vector.Vector2d.scale
(double scalar) Returns a copy of this vector scaled by the given scalar.Returns the difference of this vector and the given vector.Vector3d.to2dVector()
Returns this vector projected onto the XY-plane.Methods in com.solibri.geometry.linearalgebra that return types with arguments of type MVector2dModifier and TypeMethodDescriptionMVector2d.to2dVectors
(List<? extends Vector3d> vectors) Returns the vectors in the given list projected to the XY-plane. -
Uses of MVector2d in com.solibri.geometry.primitive2d
Methods in com.solibri.geometry.primitive2d that return MVector2dModifier and TypeMethodDescriptionSegment2d.closestPointTo
(Vector2d point) Returns the point on this segment that is closest to the given point in the XY-plane.AABB2d.getCentroid()
Returns a copy of the centroid vector of this bounding box.Area.getCentroid()
Returns the centroid of this area.Polygon2d.getCentroid()
Returns the centroid of this polygon.Returns the projection of the given point onto this line.Methods in com.solibri.geometry.primitive2d that return types with arguments of type MVector2dModifier and TypeMethodDescriptionArea.getVertices()
Returns a list of vertices in the area.Calculates an Optional containing the intersection point of this line and another line.Returns an optional containing the intersection point between the rays if present, an empty optional otherwise.Returns the point of intersection between this segment and other in the XY-plane.Polygon2d.intersectEdges
(Segment2d segment) Returns all intersection points between the edges of this polygon and the given segment.Segment2d.sample
(int amount) Samples the given amount of points from the segment.