铯笛卡尔3创建实例并进入其方法



我有一个点:

point: n
x: 1250625.1650299462
y: -5015983.5669022305
z: 3730748.0432948116

我正在尝试从

创建cartesian3实例
point = new Cesium.Cartesian3(point.x, point.y, point.z)

但这是不正确的,因为我无法访问cartesian3 ...的 add ,其中随机ofterofts也被认为是一个新的cesium.cartesium.cartesian3实例,但是我只从" new Cesium.cartesian3"中获得一个" n"结果对象。

     point = point.add(randomOffset)

我在这里做错了什么?

我明白了。这是非常愚蠢的问题!

静态表示我只是直接从

访问它
Cesium.Cartesian3.add(first_cartesian3, second_cartesian3)

不使用实例。

最新更新