메소드 | 설명 | |
---|---|---|
Clone ( ) : |
creates an instance of the GeometryLine class that is identical to the current GeometryLine
|
|
FindIntersection ( |
find the number of intersection points for two segments
|
|
FindIntersection ( |
find the intersection points of two segments
|
|
GetIntervalPoint ( float rate ) : |
get an interval point on the line of the segment
|
|
Line2D ( ) : System |
constructor default StartPoint = (0.0, 0.0), EndPoint = (1.0, 0.0)
|
|
Line2D ( |
constructor
|
|
Scale ( float rate ) : void |
scale the segment according to the center of the segment
|
|
Shift ( float distance ) : void |
parallelly shift the line
|
메소드 | 설명 | |
---|---|---|
CalculateBoundingBox ( ) : void |
calculate BoundingBox according to StartPoint and EndPoint
|
|
CalculateDirection ( ) : void |
calculate Direction by StartPoint and EndPoint
|
|
CalculateEndPoint ( ) : void |
calculate EndPoint by StartPoint, Length and Direction
|
|
CalculateLength ( ) : void |
calculate length by StartPoint and EndPoint
|
|
CalculateStartPoint ( ) : void |
calculate StartPoint by EndPoint, Length and Direction
|
public static FindIntersection ( |
||
line0 | first line | |
line1 | second line | |
리턴 | int |
public static FindIntersection ( |
||
line0 | first line | |
line1 | second line | |
intersectPnt | 0, 1 or 2 intersection points | |
리턴 | int |
public GetIntervalPoint ( float rate ) : |
||
rate | float | rate of length from interval to StartPoint /// to length from EndPoint to interval |
리턴 |
public Line2D ( |
||
startPnt | StartPoint | |
endPnt | EndPoint | |
리턴 | System |