All Known Implementing Classes:
Polygon3

public interface Triangle
An interface that represents a triangle with floats for the coordinates.

Triangles can be defined with many ways or methods, but this interface only wants the three vertices of the triangle.

For the vertices Point2f interface is used. Double precision floating point numbers can be used internally, but it is not recommended.

The main usage of this interface is to act as a data object for the Triangler.

Since:
2.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    v1()
    Gets the first vertex of this triangle.
    v2()
    Gets the second vertex of this triangle.
    v3()
    Gets the third vertex of this triangle.
  • Method Details

    • v1

      Point2f v1()
      Gets the first vertex of this triangle.
      Returns:
      the first vertex
      Since:
      2.0.0
    • v2

      Point2f v2()
      Gets the second vertex of this triangle.
      Returns:
      the second vertex
      Since:
      2.0.0
    • v3

      Point2f v3()
      Gets the third vertex of this triangle.
      Returns:
      the third vertex
      Since:
      2.0.0