test_class.file: kendzi-math-geometry/src/test/java/kendzi/math/geometry/polygon/PolygonUtilTest.java
test_class.identifier: PolygonUtilTest
test_case.body: @Test
      public void makeCounterClockwise() {
  
          Point2d p1 = point("p1", 0, 0);
          Point2d p2 = point("p2", 1, 0);
          Point2d p3 = point("p3", 1, 1);
  
          List<Point2d> counterClockwiseInput = Arrays.asList(p1, p2, p3);
  
          List<Point2d> counterClockwise = PolygonUtil.makeCounterClockwise(counterClockwiseInput);
  
          assertEquals(counterClockwiseInput, counterClockwise);
  
          List<Point2d> clockwiseInput = Arrays.asList(p3, p2, p1);
  
          counterClockwise = PolygonUtil.makeCounterClockwise(clockwiseInput);
  
          assertEquals(counterClockwiseInput, counterClockwise);
  
      }
test_case.class_method_signature: PolygonUtilTest.makeCounterClockwise()
test_case.full_signature: @Test public void makeCounterClockwise()
test_case.identifier: makeCounterClockwise
test_case.invocations: point point point asList makeCounterClockwise assertEquals asList makeCounterClockwise assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void makeCounterClockwise()
focal_class.file: kendzi-math-geometry/src/main/java/kendzi/math/geometry/polygon/PolygonUtil.java
focal_class.identifier: PolygonUtil
focal_class.class_method_signature: PolygonUtil.isPointInsidePolygon(Point2d point, PolygonList2d polygon)
focal_class.full_signature: public static boolean isPointInsidePolygon(Point2d point, PolygonList2d polygon)
focal_class.identifier: isPointInsidePolygon
focal_class.modifiers: public static
focal_class.parameters: (Point2d point, PolygonList2d polygon)
focal_class.return: boolean
focal_class.signature: boolean isPointInsidePolygon(Point2d point, PolygonList2d polygon)
focal_class.class_method_signature: PolygonUtil.isPointInsidePolygon(Point2d point, List<Point2d> points)
focal_class.full_signature: public static boolean isPointInsidePolygon(Point2d point, List<Point2d> points)
focal_class.identifier: isPointInsidePolygon
focal_class.modifiers: public static
focal_class.parameters: (Point2d point, List<Point2d> points)
focal_class.return: boolean
focal_class.signature: boolean isPointInsidePolygon(Point2d point, List<Point2d> points)
focal_class.class_method_signature: PolygonUtil.minBound(PolygonList2d pPolygon)
focal_class.full_signature: public static Point2d minBound(PolygonList2d pPolygon)
focal_class.identifier: minBound
focal_class.modifiers: public static
focal_class.parameters: (PolygonList2d pPolygon)
focal_class.return: Point2d
focal_class.signature: Point2d minBound(PolygonList2d pPolygon)
focal_class.class_method_signature: PolygonUtil.maxBound(PolygonList2d pPolygon)
focal_class.full_signature: public static Point2d maxBound(PolygonList2d pPolygon)
focal_class.identifier: maxBound
focal_class.modifiers: public static
focal_class.parameters: (PolygonList2d pPolygon)
focal_class.return: Point2d
focal_class.signature: Point2d maxBound(PolygonList2d pPolygon)
focal_class.class_method_signature: PolygonUtil.area(List<Point2d> polygon)
focal_class.full_signature: public static float area(List<Point2d> polygon)
focal_class.identifier: area
focal_class.modifiers: public static
focal_class.parameters: (List<Point2d> polygon)
focal_class.return: float
focal_class.signature: float area(List<Point2d> polygon)
focal_class.class_method_signature: PolygonUtil.isClockwisePolygon(List<Point2d> polygon)
focal_class.full_signature: public static boolean isClockwisePolygon(List<Point2d> polygon)
focal_class.identifier: isClockwisePolygon
focal_class.modifiers: public static
focal_class.parameters: (List<Point2d> polygon)
focal_class.return: boolean
focal_class.signature: boolean isClockwisePolygon(List<Point2d> polygon)
focal_class.class_method_signature: PolygonUtil.reverse(List<Point2d> polygon)
focal_class.full_signature: public static List<Point2d> reverse(List<Point2d> polygon)
focal_class.identifier: reverse
focal_class.modifiers: public static
focal_class.parameters: (List<Point2d> polygon)
focal_class.return: List<Point2d>
focal_class.signature: List<Point2d> reverse(List<Point2d> polygon)
focal_class.class_method_signature: PolygonUtil.makeCounterClockwise(List<Point2d> polygon)
focal_class.full_signature: public static List<Point2d> makeCounterClockwise(List<Point2d> polygon)
focal_class.identifier: makeCounterClockwise
focal_class.modifiers: public static
focal_class.parameters: (List<Point2d> polygon)
focal_class.return: List<Point2d>
focal_class.signature: List<Point2d> makeCounterClockwise(List<Point2d> polygon)
focal_method.body: public static List<Point2d> makeCounterClockwise(List<Point2d> polygon) {
          if (PolygonUtil.isClockwisePolygon(polygon)) {
              return PolygonUtil.reverse(polygon);
          }
          return polygon;
      }
focal_method.class_method_signature: PolygonUtil.makeCounterClockwise(List<Point2d> polygon)
focal_method.full_signature: public static List<Point2d> makeCounterClockwise(List<Point2d> polygon)
focal_method.identifier: makeCounterClockwise
focal_method.invocations: isClockwisePolygon reverse
focal_method.modifiers: public static
focal_method.parameters: (List<Point2d> polygon)
focal_method.return: List<Point2d>
focal_method.signature: List<Point2d> makeCounterClockwise(List<Point2d> polygon)