public class Triangle extends ArraySet<Pnt >
| Constructor and Description |
|---|
Triangle(Collection
|
Triangle(Pnt
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Pnt
|
boolean |
equals(Object
|
ArraySet |
facetOpposite(Pnt
Report the facet opposite vertex.
|
Pnt |
getCircumcenter()
|
Pnt |
getVertexButNot(Pnt
Get arbitrary vertex of this triangle, but not any of the bad vertices.
|
int |
hashCode()
|
boolean |
isNeighbor(Triangle
True iff triangles are neighbors.
|
Iterator |
iterator()
|
String |
toString()
|
containsAny, get, sizeremoveAlladdAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, isEmpty, remove, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic Triangle(Pnt... vertices)
vertices - the vertices of the Triangle.
IllegalArgumentException - if there are not three distinct vertices
public Triangle(Collection<? extends Pnt > collection)
collection - a Collection holding the Simplex vertices
IllegalArgumentException - if there are not three distinct vertices
public StringtoString()
public PntgetVertexButNot(Pnt ... badVertices)
badVertices - one or more bad vertices
NoSuchElementException - if no vertex found
public boolean isNeighbor(Triangletriangle)
triangle - the other Triangle
public ArraySet<Pnt > facetOpposite(Pnt vertex)
vertex - a vertex of this Triangle
IllegalArgumentException - if the vertex is not in triangle
public PntgetCircumcenter()
public boolean add(Pntvertex)
public int hashCode()
public boolean equals(Objecto)