-
Returns the sum of this vector and the given vector.
Returns a 2-dimensional vector with the X and Y values set to 0.
MVector2d.create(double x,
double y)
Returns a 2-dimensional vector with the given component values.
Returns a 2-dimensional vector with the X and Y values set to those of
the given vector.
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).
Returns a negated copy of this vector.
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.
Returns this vector projected onto the XY-plane.
Returns the vectors in the given list projected to the XY-plane.
-
Returns the point on this segment that is closest to the given point in
the XY-plane.
Returns a copy of the centroid vector of this bounding box.
Returns the centroid of this area.
Returns the centroid of this polygon.
Returns the projection of the given point onto this line.
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.
Returns all intersection points between the edges of this polygon and the
given segment.
Samples the given amount of points from the segment.