Triangle

  • The Triangle class represents a triangle defined by three points.

  • It provides a method getAllPoints() to retrieve all points within the triangle.

  • Triangle inherits standard methods from the Object class like equals(), hashCode(), and toString().

public class Triangle extends Object

Represents a triangle with 3 generic points.

Public Method Summary

List<T>
getAllPoints()
Gets all points inside the Triangle.

Inherited Method Summary

Public Methods

public List<T> getAllPoints ()

Gets all points inside the Triangle.