internal override bool GetCollisionPoint(CollisionPoint obj) { return (obj.Position == Position); }
internal override bool GetCollisionPoint(CollisionPoint obj) { Apply(); if (!outCircle.GetCollision(obj)) return false; if (inCircle.GetCollision(obj)) return true; bool neg; neg = MathUtilXNA.Cross(Side(0), obj.Position - temp[0]) < 0; for (int i = 1; i < temp.Length; i++) { if (neg != (MathUtilXNA.Cross(Side(i), obj.Position - temp[i]) < 0)) return false; } return true; }
internal override bool GetCollisionPoint(CollisionPoint obj) { return (Position - obj.Position).LengthSquared() <= Pow2(radius); }
internal abstract bool GetCollisionPoint(CollisionPoint obj);
internal override bool GetCollisionPoint(CollisionPoint obj) { return false; }
internal override bool GetCollisionPoint(CollisionPoint obj) { return obj.Position.X > Left && obj.Position.X < Right && obj.Position.Y < Top && obj.Position.Y > Bottom; }