testPoint function
void
testPoint()
Implementation
void testPoint(
Vector3 point,
num index,
num localThresholdSq,
Matrix4 matrixWorld,
Raycaster raycaster,
List<Intersection> intersects,
Object3D object) {
var rayPointDistanceSq = _pointsray.distanceSqToPoint(point);
if (rayPointDistanceSq < localThresholdSq) {
var intersectPoint = Vector3();
_pointsray.closestPointToPoint(point, intersectPoint);
intersectPoint.applyMatrix4(matrixWorld);
var distance = raycaster.ray.origin.distanceTo(intersectPoint);
if (distance < raycaster.near || distance > raycaster.far) return;
intersects.add(Intersection({
"distance": distance,
"distanceToRay": Math.sqrt(rayPointDistanceSq),
"point": intersectPoint,
"index": index,
"face": null,
"object": object
}));
}
}