屬性
From
To
方法
Clone
傳回複製的新的自己。
CopyFrom
this
this
Classify
相關位置
Intersect
相關位置。
Rot
回傳 void
Flip
回傳 void
GetPoint
取出的點
IsIntersect
IsIntersect( line: GeoLine, endPointIncluded: boolean, obj: GeoPoint | { t: number }, includeZ?: boolean,): boolean 參數
- line: GeoLine
- endPointIncluded: boolean
- obj: GeoPoint | { t: number }
- includeZ: boolean = false
回傳 boolean
是否相交。
Distance
回傳 number
傳回距離。
GetNearPoint
回傳 number
傳回離最近的點的距離。
PtInsideLine
回傳 boolean
傳回判斷的結果。
Offset
回傳 void
MakeBuffer
回傳 boolean
回傳是否成功。
ForwardExtend
ForwardExtend(distance: number): void 回傳 void
BackExtend
BackExtend(distance: number): void 回傳 void
SplitBy
回傳 boolean
傳回所有交點數量。
ToGeoJSON
參數
可選toString: false可選includeZ: boolean
輸出轉換結果。
ToGeoJSON(toString: true, includeZ?: boolean): string 參數
- toString: true
可選includeZ: boolean
回傳 string
輸出轉換結果。
FromGeoJSON
回傳 boolean
回傳讀取是否成功。
構造函數
constructor
訪問器屬性
PolarAngle
get PolarAngle(): number
回傳 number
type
get type(): 2
回傳 2
Boundary
Length
get Length(): number
回傳 number
Center
線段幾何物件