setPoint function

dynamic setPoint(
  1. dynamic point,
  2. dynamic pointMap,
  3. dynamic geometry,
  4. dynamic camera,
  5. double x,
  6. double y,
  7. double z,
)

Implementation

setPoint(point, pointMap, geometry, camera, double x, double y, double z) {
  _vector.set(x, y, z).unproject(camera);

  var points = pointMap[point];

  if (points != null) {
    var position = geometry.getAttribute('position');

    for (var i = 0, l = points.length; i < l; i++) {
      position.setXYZ(points[i], _vector.x, _vector.y, _vector.z);
    }
  }
}