距离计算
This commit is contained in:
@ -1878,7 +1878,7 @@ class CircleObject extends Base {
|
||||
entity = null
|
||||
}
|
||||
endpoint = that.cartesian3Towgs84(cartesian, that.viewer)
|
||||
let radius = that.computeDistance([that.options.center, endpoint])
|
||||
let radius = that.computeDistance2([that.options.center, endpoint])
|
||||
that.radius = radius
|
||||
|
||||
YJ.Measure.SetMeasureStatus(false)
|
||||
@ -1904,7 +1904,7 @@ class CircleObject extends Base {
|
||||
that.event.mouse_move((movement, cartesian) => {
|
||||
entity && (entity.show = true)
|
||||
endpoint = that.cartesian3Towgs84(cartesian, that.viewer)
|
||||
moveRadius = that.computeDistance([that.options.center, endpoint])
|
||||
moveRadius = that.computeDistance2([that.options.center, endpoint])
|
||||
fromDegreesArray = that.createCircle(that.options.center, moveRadius)
|
||||
that.tip.setPosition(
|
||||
cartesian,
|
||||
|
Reference in New Issue
Block a user