Package com.solibri.geometry.primitive2d
Interface MSegment2d
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface com.solibri.geometry.primitive2d.Segment2d
closestPointTo, contains, distance, distance, distanceSquared, distanceSquared, equalsWithTolerance, getEndPoint, getLength, getLengthSquared, getStartPoint, intersect, intersects, sample, shortestSegmentBetween
-
-
-
-
Method Detail
-
resize2d
void resize2d(double resize)
Resizes the segment by the given amount by adding the resize amount as tolerance to each side of the segment.- Parameters:
resize
- the resize amount- Since:
- 9.10.2
-
setStartPoint
void setStartPoint(Vector2d startPoint)
Sets the starting point of this Segment to the value of the given point. This Segment does not take ownership of the given point.- Parameters:
startPoint
- the value that is set to be the starting point of this Segment- Since:
- 9.10.2
-
setEndPoint
void setEndPoint(Vector2d endPoint)
Sets the end point of this Segment to the value of the given point. This Segment does not take ownership of the given point.- Parameters:
endPoint
- the value that is set to be the end point of this Segment- Since:
- 9.10.2
-
set
void set(Vector2d startPoint, Vector2d endPoint)
Sets the start and end points of this Segment. This Segment does not take ownership of the given points.- Parameters:
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 Segment- Since:
- 9.10.2
-
create
static MSegment2d create(Vector2d startPoint, Vector2d endPoint)
Creates an new instance.- Parameters:
startPoint
- the start pointendPoint
- the end point- Returns:
- the newly created instance
- Since:
- 9.10.2
-
-