intersectObjects method

List<Intersection> intersectObjects(
  1. List<Object3D> objects,
  2. bool recursive, [
  3. List<Intersection>? intersects
])

Implementation

List<Intersection> intersectObjects(List<Object3D> objects, bool recursive, [List<Intersection>? intersects]) {
  intersects = intersects ?? List<Intersection>.from([]);

  for (var i = 0, l = objects.length; i < l; i++) {
    intersectObject4(objects[i], this, intersects, recursive);
  }

  intersects.sort(ascSort);

  return intersects;
}