Search
Preparing search index...
The search index is not available
@motor/core
Options
All
Public
Public/Protected
All
Inherited
Menu
@motor/core
default
MeasureMultiplePointSVG
Class MeasureMultiplePointSVG
Hierarchy
MeasureMultiplePointSVG
Index
Constructors
constructor
Properties
assist
Runtime
Line
dash
Line
Style
distance
input
Map
is
Loop
line
Ary
line
Color
line
Width
point
Ary
point
Color
result
Ary
svg
Point
Ary
viewer
Methods
calc
Distance
calculate
End
choose
Point
destroy
destroy
Assist
disable
Snap
draw
End
enable
Snap
end
Draw
get
Snap
Point
init
on
Mousemove
vector3
Ary
ToNum
Ary
Constructors
constructor
new
Measure
Multiple
PointSVG
(
viewer
:
Viewer
)
:
MeasureMultiplePointSVG
Parameters
viewer:
Viewer
Returns
MeasureMultiplePointSVG
Properties
Optional
assist
Runtime
Line
assist
Runtime
Line
:
Line
dash
Line
Style
dash
Line
Style
:
string
distance
distance
:
number
input
Map
input
Map
:
InputMap
is
Loop
is
Loop
:
boolean
line
Ary
line
Ary
:
Line
[]
line
Color
line
Color
:
string
line
Width
line
Width
:
number
point
Ary
point
Ary
:
Vector3
[]
point
Color
point
Color
:
string
result
Ary
result
Ary
:
MeasureMultiPointResult
[]
svg
Point
Ary
svg
Point
Ary
:
Circle
[]
viewer
viewer
:
Viewer
Methods
calc
Distance
calc
Distance
(
pointAry
:
[
Vector3
,
Vector3
]
)
:
number
计算俩点之间的距离
Parameters
pointAry:
[
Vector3
,
Vector3
]
Returns
number
俩点之间的直线距离
calculate
End
calculate
End
(
result
:
MeasureMultiPointResult
)
:
void
Parameters
result:
MeasureMultiPointResult
Returns
void
choose
Point
choose
Point
(
windowPosition
:
undefined
|
number
|
Vector2
|
PitchPosition
)
:
Promise
<
void
>
Parameters
windowPosition:
undefined
|
number
|
Vector2
|
PitchPosition
Returns
Promise
<
void
>
destroy
destroy
(
)
:
void
Returns
void
destroy
Assist
destroy
Assist
(
)
:
void
Returns
void
disable
Snap
disable
Snap
(
)
:
void
关闭捕捉点
Returns
void
draw
End
draw
End
(
)
:
void
Returns
void
enable
Snap
enable
Snap
(
)
:
void
开启捕捉点
Returns
void
end
Draw
end
Draw
(
)
:
void
Returns
void
get
Snap
Point
get
Snap
Point
(
)
:
undefined
|
Vector3
获取捕捉点
Returns
undefined
|
Vector3
init
init
(
)
:
void
开始测量
Returns
void
on
Mousemove
on
Mousemove
(
windowPosition
:
undefined
|
number
|
Vector2
|
PitchPosition
)
:
Promise
<
void
>
Parameters
windowPosition:
undefined
|
number
|
Vector2
|
PitchPosition
Returns
Promise
<
void
>
vector3
Ary
ToNum
Ary
vector3
Ary
ToNum
Ary
(
vec3Ary
:
Vector3
[]
)
:
number
[]
Parameters
vec3Ary:
Vector3
[]
Returns
number
[]
Exports
default
default.
Motor
Core
Measure
Multiple
PointSVG
constructor
assist
Runtime
Line
dash
Line
Style
distance
input
Map
is
Loop
line
Ary
line
Color
line
Width
point
Ary
point
Color
result
Ary
svg
Point
Ary
viewer
calc
Distance
calculate
End
choose
Point
destroy
destroy
Assist
disable
Snap
draw
End
enable
Snap
end
Draw
get
Snap
Point
init
on
Mousemove
vector3
Ary
ToNum
Ary
计算俩点之间的距离