Cesium Cartesian3创建实例并进入它的方法

时间:2014-03-10 06:20:44

标签: 3d webgl 3d-modelling cesium

我有一点意见:

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

我正在尝试从

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

但这不对,因为我无法访问Cartesian3的 add 方法...其中randomOffset也被认为是一个新的Cesium.Cartesian3实例,但是我只从'新Cesium.Cartesian3'中获得'n'结果对象。

     point = point.add(randomOffset)

我在这里做错了什么?

1 个答案:

答案 0 :(得分:0)

我明白了......这是一个非常愚蠢的问题!

静态意味着我只是直接从

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

不使用实例。