src/collisions/collision-detection/src/sphere-collision-detection.js
function sphereVsPoint(sphere, point) {
  return vec3.squaredDistance(point, sphere.centerOfVolume) <= sphere.radius * sphere.radius;
}
function sphereVsPoint(sphere, point) {
  return vec3.squaredDistance(point, sphere.centerOfVolume) <= sphere.radius * sphere.radius;
}
function sphereVsPoint ( sphere , point ) { return vec3 . squaredDistance ( point , sphere . centerOfVolume ) <= sphere . radius * sphere . radius ; }
This module defines utility methods for detecting whether intersection has occurred between
spheres and other shapes.
 
@param {Sphere} sphere
@param {vec3} point
@returns {boolean}
This module defines utility methods for detecting whether intersection has occurred between spheres and other shapes .