Constructors
constructor
-
Parameters
-
-
isLoop: boolean = false
-
precision: number = 2
-
Properties
assistLineAry
assistLineAry: Line[]
Optional assistRuntimeLine
assistRuntimeLine: Line
dashLineStyle
dashLineStyle: string
Optional finalLine
finalLine: Line
finalLineColor
finalLineColor: string
lineWidth
lineWidth: number
pointColor
pointColor: string
precision
precision: number
svgPointAry
svgPointAry: Circle[]
xLineColor
xLineColor: string
yLineColor
yLineColor: string
zLineColor
zLineColor: string
Methods
calcDistance
-
Parameters
Returns void
俩点之间的距离
choosePoint
-
Parameters
Returns Promise<void>
getSnapPoint
- getSnapPoint(): undefined | Vector3
onMousemove
-
Parameters
Returns Promise<void>
startDrawLine
- startDrawLine(): Promise<void>
updatePrecision
- updatePrecision(precision: number): void
vector3AryToNumAry
- vector3AryToNumAry(vec3Ary: Vector3[]): number[]
-
Parameters
Returns number[]
计算俩点之间的距离