Пример #1
0
 public bool IsOn(AxisAlignedRectangle rectangle, Camera camera)
 {
     return(rectangle.IsPointInside(WorldXAt(0, camera), WorldYAt(0, camera)));
 }
Пример #2
0
 private static int GetPointToStartAt(Polygon polygon, AxisAlignedRectangle rectangle)
 {
     int firstPointToStartAt = -1;
     for (int i = 0; i < polygon.mVertices.Length - 1; i++)
     {
         if (!rectangle.IsPointInside(ref polygon.mVertices[i].Position))
         {
             firstPointToStartAt = i;
             break;
         }
     }
     return firstPointToStartAt;
 }
Пример #3
0
 public bool IsOn(AxisAlignedRectangle rectangle)
 {
     return(rectangle.IsPointInside(WorldXAt(0), WorldYAt(0)));
 }