Esempio n. 1
0
 public bool GetColision(RotatableRectangle r)
 {
     Vector2[] myCoords    = GetCorners();
     Vector2[] otherCoords = r.GetCorners();
     if (GetColision_Rough(myCoords, otherCoords))
     {
         return(GetColision_Accurate(myCoords, otherCoords));
     }
     return(false);
 }
Esempio n. 2
0
 public bool GetColision_Rough(RotatableRectangle r)
 {
     Vector2[] myCoords    = GetCorners();
     Vector2[] otherCoords = r.GetCorners();
     return(GetColision_Rough(myCoords, otherCoords));
 }