test_class.declarator: CLOCKWISE     = -1
test_class.modifier: private static final
test_class.original_string: private static final int CLOCKWISE     = -1;
test_class.type: int
test_class.var_name: CLOCKWISE
test_class.declarator: ANTICLOCKWISE = +1
test_class.modifier: private static final
test_class.original_string: private static final int ANTICLOCKWISE = +1;
test_class.type: int
test_class.var_name: ANTICLOCKWISE
test_class.declarator: NONE          = 0
test_class.modifier: private static final
test_class.original_string: private static final int NONE          = 0;
test_class.type: int
test_class.var_name: NONE
test_class.file: tool/hash/src/test/java/org/openscience/cdk/hash/stereo/Tetrahedral2DParityTest.java
test_class.identifier: Tetrahedral2DParityTest
test_case.body: @Test
      public void testParity_Three_DDD() {
          Point2d[] coords = new Point2d[]{new Point2d(-7.75, 5.79), // -O (down)
                  new Point2d(-6.42, 3.48), // -N
                  new Point2d(-9.09, 3.48), // -C
                  new Point2d(-7.75, 4.25), //  C (centre)
          };
          int[] elev = new int[]{-1, -1, -1, 0};
          GeometricParity parity = new Tetrahedral2DParity(coords, elev);
          org.hamcrest.MatcherAssert.assertThat(parity.parity(), is(ANTICLOCKWISE));
      }
test_case.class_method_signature: Tetrahedral2DParityTest.testParity_Three_DDD()
test_case.full_signature: @Test public void testParity_Three_DDD()
test_case.identifier: testParity_Three_DDD
test_case.invocations: assertThat parity is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParity_Three_DDD()
focal_class.declarator: coordinates
focal_class.modifier: private final
focal_class.original_string: private final Point2d[] coordinates;
focal_class.type: Point2d[]
focal_class.var_name: coordinates
focal_class.declarator: elevations
focal_class.modifier: private final
focal_class.original_string: private final int[]     elevations;
focal_class.type: int[]
focal_class.var_name: elevations
focal_class.file: tool/hash/src/main/java/org/openscience/cdk/hash/stereo/Tetrahedral2DParity.java
focal_class.identifier: Tetrahedral2DParity
focal_class.class_method_signature: Tetrahedral2DParity.Tetrahedral2DParity(Point2d[] coordinates, int[] elevations)
focal_class.full_signature: public  Tetrahedral2DParity(Point2d[] coordinates, int[] elevations)
focal_class.identifier: Tetrahedral2DParity
focal_class.modifiers: public
focal_class.parameters: (Point2d[] coordinates, int[] elevations)
focal_class.signature:  Tetrahedral2DParity(Point2d[] coordinates, int[] elevations)
focal_class.class_method_signature: Tetrahedral2DParity.parity()
focal_class.full_signature: @Override public int parity()
focal_class.identifier: parity
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int parity()
focal_class.class_method_signature: Tetrahedral2DParity.det(double xa, double ya, double xb, double yb, double xc, double yc)
focal_class.full_signature: private static double det(double xa, double ya, double xb, double yb, double xc, double yc)
focal_class.identifier: det
focal_class.modifiers: private static
focal_class.parameters: (double xa, double ya, double xb, double yb, double xc, double yc)
focal_class.return: double
focal_class.signature: double det(double xa, double ya, double xb, double yb, double xc, double yc)
focal_class.superclass: extends GeometricParity
focal_method.body: @Override
      public int parity() {
  
          double x1 = coordinates[0].x;
          double x2 = coordinates[1].x;
          double x3 = coordinates[2].x;
          double x4 = coordinates[3].x;
  
          double y1 = coordinates[0].y;
          double y2 = coordinates[1].y;
          double y3 = coordinates[2].y;
          double y4 = coordinates[3].y;
  
          double det = (elevations[0] * det(x2, y2, x3, y3, x4, y4)) - (elevations[1] * det(x1, y1, x3, y3, x4, y4))
                  + (elevations[2] * det(x1, y1, x2, y2, x4, y4)) - (elevations[3] * det(x1, y1, x2, y2, x3, y3));
  
          return (int) Math.signum(det);
      }
focal_method.class_method_signature: Tetrahedral2DParity.parity()
focal_method.full_signature: @Override public int parity()
focal_method.identifier: parity
focal_method.invocations: det det det det signum
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int parity()