public class Triangle extends Object
Constructor and Description |
---|
Triangle(Point first,
Point second,
Point third)
Initializes this triangle with the given points.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Tests whether this triangle is the same as the given object.
|
Point |
getFirst()
Returns the first point of this triangle.
|
Point |
getSecond()
Returns the second point of this triangle.
|
Point |
getThird()
Returns the third point of this triangle.
|
int |
hashCode()
Returns the hash code of this triangle.
|
String |
toString()
Returns a string representation of this triangle.
|
public Point getFirst()
public Point getSecond()
public Point getThird()
public int hashCode()
public boolean equals(Object object)