Question

I have a point:

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

And I'm trying to create a Cartesian3 instance from

point = new Cesium.Cartesian3(point.x, point.y, point.z)

But that is not right since I can't access the add method of Cartesian3... where randomOffset is also suppose to be a new Cesium.Cartesian3 instance, but I'm only getting a 'n' result object from 'new Cesium.Cartesian3'.

     point = point.add(randomOffset)

What am I doing wrong here?

Was it helpful?

Solution

I got it.. this is incredibly silly question!

Static means I just access it directly from

Cesium.Cartesian3.add(first_cartesian3, second_cartesian3)

Without using it from the instance.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top