Modifier and Type | Method and Description |
---|---|
static MSegment2d |
create(Vector2d startPoint,
Vector2d endPoint)
Creates an new instance.
|
void |
resize2d(double resize)
Resizes the segment by the given amount by adding the resize amount
as tolerance to each side of the segment.
|
void |
set(Vector2d startPoint,
Vector2d endPoint)
Sets the start and end points of this Segment.
|
void |
setEndPoint(Vector2d endPoint)
Sets the end point of this Segment to the value of the given point.
|
void |
setStartPoint(Vector2d startPoint)
Sets the starting point of this Segment to the value of the given point.
|
closestPointTo, contains, distance, distance, distanceSquared, distanceSquared, equalsWithTolerance, getEndPoint, getLength, getLengthSquared, getStartPoint, intersect, intersects, lengthComparator, sample, shortestSegmentBetween
void resize2d(double resize)
resize
- the resize amountvoid setStartPoint(Vector2d startPoint)
startPoint
- the value that is set to be the starting point of this
Segmentvoid setEndPoint(Vector2d endPoint)
endPoint
- the value that is set to be the end point of this Segmentvoid set(Vector2d startPoint, Vector2d endPoint)
startPoint
- the value that is set to be the starting point of this
SegmentendPoint
- the value that is set to be the end point of this Segmentstatic MSegment2d create(Vector2d startPoint, Vector2d endPoint)
Copyright © 2019 Solibri, Inc.. All rights reserved.