Geometric Primitives Cleanup (#346)

* CircleF and RectangleF

* Fix build errors
This commit is contained in:
Lucas Girouard-Stranks
2017-03-12 20:32:07 +10:00
committed by Dylan Wilson
parent ea518d55da
commit a1f8566a46
76 changed files with 2206 additions and 1596 deletions
@@ -22,9 +22,9 @@ namespace MonoGame.Extended.SceneGraphs
{
var node = RootNode;
while ((node != null) && node.BoundingRectangle.Contains(x, y))
while ((node != null) && node.BoundingRectangle.Contains(new Point2(x, y)))
{
var childNode = node.Children.FirstOrDefault(c => c.BoundingRectangle.Contains(x, y));
var childNode = node.Children.FirstOrDefault(c => c.BoundingRectangle.Contains(new Point2(x, y)));
if (childNode != null)
node = childNode;