コード例 #1
0
 public bool IsOverLapWith(TCircle circle)
 {
     return((radius + circle.radius) * (radius + circle.radius) > (center - circle.center).sqrMagnitude);
 }
コード例 #2
0
 public static TCircle Lerp(TCircle a, TCircle b, float t)
 {
     return(new TCircle(Vector2.Lerp(a.center, b.center, t), Mathf.Lerp(a.radius, b.radius, t)));
 }
コード例 #3
0
 public bool IsOverLapWith(TCircle circle)
 {
     return(IsOverLapWith(new TEllipse(circle.boundingRect)));
 }