public void TestComplexAABB() { ComplexShape complexShape = new ComplexShape(new IShape[] { new CircleShape(new Vector2(0, 20.0f), 14.577379f), new RectangleShape(new Vector2(0, 20.0f), 49, 3) }); Collision.Transform complexTransform = new Collision.Transform(new Vector2(-1709.34f, 402.0f), 1.2456f); Vector2 lb; Vector2 ub; complexShape.GetAABB(complexTransform, out lb, out ub); Console.WriteLine("Complex LB: " + lb); Assert.That(VectorEquals(lb, new Vector2(-1742.869f, 384.6948f)), "ComplexShape.GetAABB() lower bound is incorrect"); Console.WriteLine("Complex UB: " + ub); Assert.That(VectorEquals(ub, new Vector2(-1713.714f, 432.0851f)), "ComplexShape.GetAABB() upper bound is incorrect"); }