3d - Cesium Cartesian3 creating instance and getting into it's method -
i have point:
point: n x: 1250625.1650299462 y: -5015983.5669022305 z: 3730748.0432948116
and i'm trying create cartesian3 instance from
point = new cesium.cartesian3(point.x, point.y, point.z)
but not right since can't access add method of cartesian3... randomoffset suppose new cesium.cartesian3 instance, i'm getting 'n' result object 'new cesium.cartesian3'.
point = point.add(randomoffset)
what doing wrong here?
i got it.. incredibly silly question!
static means access directly
cesium.cartesian3.add(first_cartesian3, second_cartesian3)
without using instance.
Comments
Post a Comment