Ejemplo n.º 1
0
 public bool Collision(Triangle t, Vector2 thisOffset, Vector2 offset)
 {
     if (Collision(t.points[0], thisOffset, offset) ||
         Collision(t.points[1], thisOffset, offset) ||
         Collision(t.points[2], thisOffset, offset))
     {
         if (onCollision != null) onCollision(this, t);
         return true;
     }
     else return false;
 }
Ejemplo n.º 2
0
 public Object Clone()
 {
     Triangle t = new Triangle(points[0], points[1], points[2]);
     return t;
 }