public class Simplex extends AbstractSet implements Set
Modifier and Type | Field and Description |
---|---|
static boolean |
moreInfo |
Constructor and Description |
---|
Simplex(Collection collection)
Constructor.
|
Simplex(Object[] vertices)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Set |
boundary(Set simplexSet)
Report the boundary of a Set of Simplices.
|
int |
dimension()
Dimension of the Simplex.
|
boolean |
equals(Object o)
We want to allow for different simplices that share the same vertex set.
|
List |
facets()
Report the facets of this Simplex.
|
int |
hashCode() |
boolean |
isNeighbor(Simplex simplex)
True iff simplices are neighbors.
|
Iterator |
iterator() |
int |
size() |
String |
toString()
String representation.
|
removeAll
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public Simplex(Collection collection)
collection
- a Collection holding the Simplex verticesIllegalArgumentException
- if there are duplicate verticespublic Simplex(Object[] vertices)
vertices
- the vertices of the Simplex.IllegalArgumentException
- if there are duplicate verticespublic String toString()
toString
in class AbstractCollection
public int dimension()
public boolean isNeighbor(Simplex simplex)
simplex
- the other Simplexpublic List facets()
public static Set boundary(Set simplexSet)
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface Set
iterator
in class AbstractCollection
public int size()
size
in interface Collection
size
in interface Set
size
in class AbstractCollection
public int hashCode()
hashCode
in interface Collection
hashCode
in interface Set
hashCode
in class AbstractSet
public boolean equals(Object o)
equals
in interface Collection
equals
in interface Set
equals
in class AbstractSet
Copyright © 2015–2021 Fiji. All rights reserved.