ImmutableTriangle
public final class ImmutableTriangle extends Triangle
An immutable triangle, defined by its three corners p0, p1 and p2 in order. This object is immutable, so it is inherently thread-safe. See MutableTriangle for the mutable version.
Summary
Public methods |
|
|---|---|
boolean |
Equality for |
@NonNull ImmutableVec |
getP0()One of the three points that define the |
@NonNull ImmutableVec |
getP1()One of the three points that define the |
@NonNull ImmutableVec |
getP2()One of the three points that define the |
int |
hashCode() |
@NonNull String |
toString() |
Inherited methods |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
ImmutableTriangle
public ImmutableTriangle(@NonNull Vec p0, @NonNull Vec p1, @NonNull Vec p2)