示例#1
0
 public Sphere(Sphere other) : this(other.center, other.radius, other.transform)
 {
 }
示例#2
0
 public Sphere WithCenter(Vector3 center)
 {
     var copy = new Sphere(this); copy.center = center; return(copy);
 }
示例#3
0
文件: Capsule.cs 项目: LABSIM/APOLLON
 public Capsule(Sphere sphere, Vector3 otherCenter)
     : this(sphere.center, otherCenter, sphere.radius, sphere.transform)
 {
 }
示例#4
0
 /// <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));
 }
示例#5
0
 public static bool DoesOverlap(Box box, Sphere sphere)
 {
     return(DoesOverlap(sphere, box));
 }
示例#6
0
 public static bool DoesOverlap(Rect rect, Sphere sphere)
 {
     return(DoesOverlap(sphere, rect));
 }