Package | Description |
---|---|
com.solibri.geometry.linearalgebra | |
com.solibri.geometry.primitive2d |
Modifier and Type | Method and Description |
---|---|
MVector2d |
Vector2d.add(Vector2d vector)
Returns 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 |
MVector2d.create(Vector2d vec)
Returns a 2-dimensional vector with the X and Y values set to those of
the given vector.
|
MVector2d |
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).
|
MVector2d |
Vector2d.negate()
Returns a negated copy of this vector.
|
MVector2d |
Vector2d.normalize()
Returns a normalized copy of this vector.
|
MVector2d |
Vector2d.scale(double scalar)
Returns a copy of this vector scaled by the given scalar.
|
MVector2d |
Vector2d.subtract(Vector2d vector)
Returns the difference of this vector and the given vector.
|
MVector2d |
Vector3d.to2dVector()
Returns this vector projected onto the XY-plane.
|
Modifier and Type | Method and Description |
---|---|
static List<MVector2d> |
MVector2d.to2dVectors(List<? extends Vector3d> vectors)
Returns the vectors in the given list projected to the XY-plane.
|
Modifier and Type | Method and Description |
---|---|
MVector2d |
Segment2d.closestPointTo(Vector2d point)
Returns the point on this segment that is closest to the given point in
the XY-plane.
|
MVector2d |
AABB2d.getCentroid()
Returns a copy of the centroid vector of this bounding box.
|
MVector2d |
Area.getCentroid()
Returns the centroid of this area.
|
MVector2d |
Polygon2d.getCentroid()
Returns the centroid of this polygon.
|
MVector2d |
Line2d.project(Vector2d point)
Returns the projection of the given point onto this line.
|
Modifier and Type | Method and 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.
|
Copyright © 2019 Solibri, Inc.. All rights reserved.