LineSegment
The LineSegment class represents a line segment in 2D space. It contains two Point objects, which represent the start point and end point of the line segment.
Definition
Namespace: Dynamsoft.Core
class LineSegment
Methods
| Method | Description |
|---|---|
GetStartPoint |
Gets the start point of the line segment. |
GetEndPoint |
Gets the end point of the line segment. |
SetStartPoint |
Sets the start point of the line segment. |
SetEndPoint |
Sets the end point of the line segment. |
GetId |
Gets the id of the line segment. |
SetId |
Sets the id of the line segment. |
GetStartPoint
Gets the start point of the line segment.
Point GetStartPoint()
Return Value
Returns the start point of the line segment.
See Also
GetEndPoint
Gets the end point of the line segment.
Point GetEndPoint()
Return Value
Returns the end point of the line segment.
See Also
SetStartPoint
Sets the start point of the line segment.
void SetStartPoint(Point pt)
Parameters
[in] pt: The start point of the line segment.
See Also
SetEndPoint
Sets the end point of the line segment.
void SetEndPoint(Point pt)
Parameters
[in] pt: The end point of the line segment.
See Also
GetId
Gets the id of the line segment.
int GetId();
Return Value
Returns the id of the line segment.
SetId
Sets the id of the line segment.
void SetId(int lineId);
Parameters
[in] lineId: The id of the line segment.