Exemplo n.º 1
0
 public bool NoContactCertainty(IConvex2D shape)
 {
     return(shape.DistanceSquared(new Vector2(x, y)) > 0);
 }
 /// <summary>
 /// No SAT here
 /// A shape doesn't touch a circle when it's closest distance to the circle's center is greater than the circle's radius
 /// </summary>
 public bool NoContactCertainty(IConvex2D shape)
 {
     return(shape.DistanceSquared(center) > radius * radius);
 }