Line
Line in 2D space
Constructor Summary
Public Constructor | ||
public |
constructor(startPoint: misc.Point, endPoint: misc.Point) |
Method Summary
Public Methods | ||
public |
getEndPoint(): misc.Point Get end point |
|
public |
getStartPoint(): misc.Point Get start point |
|
public |
isIntersectWithLine(line: misc.Line): Boolean Check if it intersect with another line |
|
public |
isIntersectWithPolygon(polygon: misc.Polygon): Boolean Check if it intersect with polygon |
Public Constructors
public constructor(startPoint: misc.Point, endPoint: misc.Point) source
Params:
Name | Type | Attribute | Description |
startPoint | misc.Point | Start point of the line |
|
endPoint | misc.Point | End point of the line |