距离计算

This commit is contained in:
zh
2025-07-15 10:37:23 +08:00
parent 040049236d
commit 12fcb9fed7
14 changed files with 73 additions and 70 deletions

View File

@ -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,