Class Triangle

java.lang.Object
org.openpatch.scratch.Shape
org.openpatch.scratch.Triangle

public class Triangle extends Shape
A triangle.
  • Constructor Details

    • Triangle

      public Triangle(double x1, double y1, double x2, double y2, double x3, double y3)
      Parameters:
      x1 - x of the first corner
      y1 - y of the first corner
      x2 - x of the second corner
      y2 - y of the second corner
      x3 - x of the third corner
      y3 - y of the third corner