public Sphere(Sphere other) : this(other.center, other.radius, other.transform) { }
public Sphere WithCenter(Vector3 center) { var copy = new Sphere(this); copy.center = center; return(copy); }
public Capsule(Sphere sphere, Vector3 otherCenter) : this(sphere.center, otherCenter, sphere.radius, sphere.transform) { }
/// <summary> /// Returns the distance between the closest points on the Rect and the Sphere, /// or 0 if the two overlap. /// </summary> public static float DistanceTo(Rect rect, Sphere sphere) { return(DistanceBetween(sphere, rect)); }
public static bool DoesOverlap(Box box, Sphere sphere) { return(DoesOverlap(sphere, box)); }
public static bool DoesOverlap(Rect rect, Sphere sphere) { return(DoesOverlap(sphere, rect)); }