From 5c6736e8b510d96195d997b68a76d2d2e964ffed Mon Sep 17 00:00:00 2001 From: Benjamin Ward Date: Sun, 19 Jul 2015 20:19:05 -0400 Subject: [PATCH] Code organization --- MonoGame.Extended/MonoGame.Extended/Camera2D.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/MonoGame.Extended/MonoGame.Extended/Camera2D.cs b/MonoGame.Extended/MonoGame.Extended/Camera2D.cs index 289c8d66..70a47b3e 100644 --- a/MonoGame.Extended/MonoGame.Extended/Camera2D.cs +++ b/MonoGame.Extended/MonoGame.Extended/Camera2D.cs @@ -93,24 +93,24 @@ namespace MonoGame.Extended return GetBoundingFrustum().Contains(new Vector3(point.X, point.Y, 0)) != ContainmentType.Disjoint; } - public ContainmentType Contains(Point point) - { - return GetBoundingFrustum().Contains(new Vector3(point.X, point.Y, 0)); - } - public bool Contains(Vector2 point) { return GetBoundingFrustum().Contains(new Vector3(point.X, point.Y, 0)) != ContainmentType.Disjoint; } - public ContainmentType Contains(Vector2 point) + public bool Contains(Rectangle rectangle) + { + return GetBoundingFrustum().Contains(new BoundingBox(new Vector3(0, 0, 0), new Vector3(15, 15, 0))) != ContainmentType.Disjoint; + } + + public ContainmentType Contains(Point point) { return GetBoundingFrustum().Contains(new Vector3(point.X, point.Y, 0)); } - public bool Contains(Rectangle rectangle) + public ContainmentType Contains(Vector2 point) { - return GetBoundingFrustum().Contains(new BoundingBox(new Vector3(0, 0, 0), new Vector3(15, 15, 0))) != ContainmentType.Disjoint; + return GetBoundingFrustum().Contains(new Vector3(point.X, point.Y, 0)); } public ContainmentType Contains(Rectangle rectangle)