|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.geometry.Triangle
public class Triangle
A triangle
| Field Summary | |
|---|---|
private Coord3D[] |
points
Vertices |
| Constructor Summary | |
|---|---|
Triangle(Coord2D[] newPoints)
Create a planar triangle with the given vertices |
|
Triangle(Coord3D[] newPoints)
Create a triangle with the given vertices |
|
| Method Summary | |
|---|---|
Collection<LineSeg3D> |
getEdges()
Get the edges of this triangle |
Collection<Coord3D> |
getVertices()
Get the vertices of the triangle |
Coord3D[] |
getVerticesArray()
Get the vertices of the triangle as an array |
boolean |
hasEdge(LineSeg3D edge)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final Coord3D[] points
| Constructor Detail |
|---|
public Triangle(Coord2D[] newPoints)
newPoints - the verticespublic Triangle(Coord3D[] newPoints)
newPoints - vertices| Method Detail |
|---|
public Collection<LineSeg3D> getEdges()
public Collection<Coord3D> getVertices()
public Coord3D[] getVerticesArray()
public boolean hasEdge(LineSeg3D edge)
edge - a line segment
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||