Uses of Interface
com.solibri.geometry.linearalgebra.MVector2d
-
Packages that use MVector2d Package Description com.solibri.geometry.linearalgebra com.solibri.geometry.primitive2d -
-
Uses of MVector2d in com.solibri.geometry.linearalgebra
Methods in com.solibri.geometry.linearalgebra that return MVector2d Modifier and Type Method Description MVector2dVector2d. add(Vector2d vector)Returns the sum of this vector and the given vector.static MVector2dMVector2d. create()Returns a 2-dimensional vector with the X and Y values set to 0.static MVector2dMVector2d. create(double x, double y)Returns a 2-dimensional vector with the given component values.static MVector2dMVector2d. create(Vector2d vec)Returns a 2-dimensional vector with the X and Y values set to those of the given vector.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).MVector2dVector2d. negate()Returns a negated copy of this vector.MVector2dVector2d. normalize()Returns a normalized copy of this vector.MVector2dVector2d. scale(double scalar)Returns a copy of this vector scaled by the given scalar.MVector2dVector2d. subtract(Vector2d vector)Returns the difference of this vector and the given vector.MVector2dVector3d. to2dVector()Returns this vector projected onto the XY-plane.Methods in com.solibri.geometry.linearalgebra that return types with arguments of type MVector2d Modifier and Type Method Description static List<MVector2d>MVector2d. 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 MVector2d 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.MVector2dAABB2d. getCentroid()Returns a copy of the centroid vector of this bounding box.MVector2dArea. getCentroid()Returns the centroid of this area.MVector2dPolygon2d. getCentroid()Returns the centroid of this polygon.MVector2dLine2d. project(Vector2d point)Returns the projection of the given point onto this line.Methods in com.solibri.geometry.primitive2d that return types with arguments of type MVector2d Modifier and Type Method Description List<MVector2d>Area. getVertices()Returns a list of vertices in the area.Optional<MVector2d>Line2d. intersect(Line2d otherLine)Calculates an Optional containing the intersection point of this line and another line.Optional<MVector2d>Ray2d. intersect(Ray2d ray)Returns an optional containing the intersection point between the rays if present, an empty optional otherwise.Optional<MVector2d>Segment2d. intersect(Segment2d other)Returns the point of intersection between this segment and other in the XY-plane.Collection<MVector2d>Polygon2d. intersectEdges(Segment2d segment)Returns all intersection points between the edges of this polygon and the given segment.default List<MVector2d>Segment2d. sample(int amount)Samples the given amount of points from the segment.
-