30 : pos(pos), radius(radius) {}
42 inline float DistanceBetweenSpheres(
const Sphere& sphere1,
const Sphere& sphere2)
44 return Math::Distance(sphere1.pos, sphere2.pos) - sphere1.radius - sphere2.radius;
float Distance(const Point &a, const Point &b)
Returns the distance between two points.
Definition: point.h:190
float DistanceToSphere(const Vector &point, const Sphere &sphere)
Compute distance between given point and sphere.
Definition: sphere.h:37
Namespace for (new) math code.
Definition: device.h:39
Vector struct and related functions.
3D (3x1) vector
Definition: vector.h:53