Search
Preparing search index...
The search index is not available
@motor/core
Options
All
Public
Public/Protected
All
Inherited
Menu
@motor/core
default
MeasureTwoPointPrimitive
Class MeasureTwoPointPrimitive
Hierarchy
DrawPrimitive
MeasureTwoPointPrimitive
Index
Constructors
constructor
Properties
_viewer
assisted
Line
end
Point
end
Point
Color
point
point
Collection
polyline
Collection
start
Point
total
Line
Color
viewer
x
Line
Color
y
Line
Color
z
Line
Color
Methods
calculate
End
choose
Point
destroy
destroy
Primitive
Collection
draw
Bounding
Box
draw
Line
draw
Point
force
Update
init
on
Mousemove
remove
remove
All
remove
All
Point
remove
All
Polyline
start
Draw
Line
vector3
Ary
ToNum
Ary
Constructors
constructor
new
Measure
Two
Point
Primitive
(
viewer
:
Viewer
)
:
MeasureTwoPointPrimitive
Parameters
viewer:
Viewer
Returns
MeasureTwoPointPrimitive
Properties
_viewer
_viewer
:
Viewer
Optional
assisted
Line
assisted
Line
:
Polyline
Optional
end
Point
end
Point
:
PointPrimitive
end
Point
Color
end
Point
Color
:
Color
point
point
:
Vector3
[]
point
Collection
point
Collection
:
PointCollection
polyline
Collection
polyline
Collection
:
PolylineCollection
Optional
start
Point
start
Point
:
PointPrimitive
total
Line
Color
total
Line
Color
:
Color
viewer
viewer
:
Viewer
x
Line
Color
x
Line
Color
:
Color
y
Line
Color
y
Line
Color
:
Color
z
Line
Color
z
Line
Color
:
Color
Methods
calculate
End
calculate
End
(
x
:
number
, y
:
number
, z
:
number
, total
:
number
)
:
void
Parameters
x:
number
y:
number
z:
number
total:
number
Returns
void
choose
Point
choose
Point
(
e
:
MouseEvent
)
:
Promise
<
void
>
Parameters
e:
MouseEvent
Returns
Promise
<
void
>
destroy
destroy
(
)
:
void
Returns
void
destroy
Primitive
Collection
destroy
Primitive
Collection
(
)
:
void
Returns
void
draw
Bounding
Box
draw
Bounding
Box
(
box
:
Box
, lineColor
?:
Color
, lineWidth
?:
number
, useDash
?:
boolean
)
:
Polyline
Parameters
box:
Box
Optional
lineColor:
Color
Optional
lineWidth:
number
Optional
useDash:
boolean
Returns
Polyline
draw
Line
draw
Line
(
vec3
:
Vector3
[]
, lineColor
?:
Color
, lineWidth
?:
number
, useDash
?:
boolean
, cesiumMaterial
?:
CesiumMaterial
)
:
Polyline
Parameters
vec3:
Vector3
[]
Optional
lineColor:
Color
Optional
lineWidth:
number
Optional
useDash:
boolean
Optional
cesiumMaterial:
CesiumMaterial
Returns
Polyline
draw
Point
draw
Point
(
position
:
Vector3
, pointColor
?:
Color
, pixelSize
?:
number
)
:
PointPrimitive
Parameters
position:
Vector3
Optional
pointColor:
Color
Optional
pixelSize:
number
Returns
PointPrimitive
force
Update
force
Update
(
)
:
void
Returns
void
init
init
(
)
:
void
Returns
void
on
Mousemove
on
Mousemove
(
e
:
MouseEvent
)
:
Promise
<
void
>
Parameters
e:
MouseEvent
Returns
Promise
<
void
>
remove
remove
(
pointOrPolyline
:
PointPrimitive
|
Polyline
)
:
void
Parameters
pointOrPolyline:
PointPrimitive
|
Polyline
Returns
void
remove
All
remove
All
(
)
:
void
Returns
void
remove
All
Point
remove
All
Point
(
)
:
void
Returns
void
remove
All
Polyline
remove
All
Polyline
(
)
:
void
Returns
void
start
Draw
Line
start
Draw
Line
(
)
:
void
Returns
void
vector3
Ary
ToNum
Ary
vector3
Ary
ToNum
Ary
(
vec3Ary
:
Vector3
[]
)
:
number
[]
Parameters
vec3Ary:
Vector3
[]
Returns
number
[]
Exports
default
default.
Motor
Core
Measure
Two
Point
Primitive
constructor
_viewer
assisted
Line
end
Point
end
Point
Color
point
point
Collection
polyline
Collection
start
Point
total
Line
Color
viewer
x
Line
Color
y
Line
Color
z
Line
Color
calculate
End
choose
Point
destroy
destroy
Primitive
Collection
draw
Bounding
Box
draw
Line
draw
Point
force
Update
init
on
Mousemove
remove
remove
All
remove
All
Point
remove
All
Polyline
start
Draw
Line
vector3
Ary
ToNum
Ary