|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.geom.mesh2d.DelaunayVertex
public class DelaunayVertex
Points in Euclidean space, implemented as double[]. Includes simple geometric operations. Uses matrices; a matrix is represented as an array of Pnts. Uses simplices; a simplex is represented as an array of Pnts.
Constructor Summary | |
---|---|
DelaunayVertex(double... coords)
Constructor. |
Method Summary | |
---|---|
DelaunayVertex |
add(DelaunayVertex p)
Add. |
double |
angle(DelaunayVertex p)
Angle (in radians) between two Pnts (treated as vectors). |
DelaunayVertex |
bisector(DelaunayVertex point)
Perpendicular bisector of two Pnts. |
static DelaunayVertex |
circumcenter(DelaunayVertex[] simplex)
Circumcenter of a simplex. |
static double |
content(DelaunayVertex[] simplex)
Determine the signed content (i.e., area or volume, etc.) of a simplex. |
double |
coord(int i)
|
static DelaunayVertex |
cross(DelaunayVertex[] matrix)
Compute generalized cross-product of the rows of a matrix. |
static double |
determinant(DelaunayVertex[] matrix)
Compute the determinant of a matrix (array of Pnts). |
int |
dimCheck(DelaunayVertex p)
Check that dimensions match. |
int |
dimension()
|
double |
dot(DelaunayVertex p)
Dot product. |
boolean |
equals(java.lang.Object other)
|
DelaunayVertex |
extend(double... coords)
Create a new DelaunayVertex by adding additional coordinates to this DelaunayVertex. |
int |
hashCode()
|
boolean |
isInside(DelaunayVertex[] simplex)
Test if this DelaunayVertex is inside a simplex. |
DelaunayVertex |
isOn(DelaunayVertex[] simplex)
Test if this DelaunayVertex is on a simplex. |
DelaunayVertex |
isOutside(DelaunayVertex[] simplex)
Test if this DelaunayVertex is outside of simplex. |
double |
magnitude()
Magnitude (as a vector). |
int[] |
relation(DelaunayVertex[] simplex)
Relation between this DelaunayVertex and a simplex (represented as an array of Pnts). |
DelaunayVertex |
subtract(DelaunayVertex p)
Subtract. |
java.lang.String |
toString()
|
static java.lang.String |
toString(DelaunayVertex[] matrix)
Create a String for a matrix. |
Vec2D |
toVec2D()
|
int |
vsCircumcircle(DelaunayVertex[] simplex)
Test relation between this DelaunayVertex and circumcircle of a simplex. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DelaunayVertex(double... coords)
coords
- the coordinatesMethod Detail |
---|
public static DelaunayVertex circumcenter(DelaunayVertex[] simplex)
simplex
- the simplex (as an array of Pnts)
public static double content(DelaunayVertex[] simplex)
simplex
- the simplex (as an array of Pnts)
public static DelaunayVertex cross(DelaunayVertex[] matrix)
matrix
- the matrix of Pnts (one less row than the DelaunayVertex
dimension)
java.lang.IllegalArgumentException
- if matrix is wrong shapepublic static double determinant(DelaunayVertex[] matrix)
matrix
- the matrix as an array of Pnts
java.lang.IllegalArgumentException
- if dimensions are wrongpublic static java.lang.String toString(DelaunayVertex[] matrix)
matrix
- the matrix (an array of Pnts)
public DelaunayVertex add(DelaunayVertex p)
p
- the other DelaunayVertex
public double angle(DelaunayVertex p)
p
- the other DelaunayVertex
public DelaunayVertex bisector(DelaunayVertex point)
point
- the other point
public double coord(int i)
java.lang.ArrayIndexOutOfBoundsException
- for bad coordinatepublic int dimCheck(DelaunayVertex p)
p
- the DelaunayVertex to check (against this DelaunayVertex)
java.lang.IllegalArgumentException
- if dimension fail to matchpublic int dimension()
public double dot(DelaunayVertex p)
p
- the other DelaunayVertex
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public DelaunayVertex extend(double... coords)
coords
- the new coordinates (added on the right end)
public int hashCode()
hashCode
in class java.lang.Object
public boolean isInside(DelaunayVertex[] simplex)
simplex
- the simplex (an arary of Pnts)
public DelaunayVertex isOn(DelaunayVertex[] simplex)
simplex
- the simplex (an array of Pnts)
public DelaunayVertex isOutside(DelaunayVertex[] simplex)
simplex
- the simplex (an array of Pnts)
public double magnitude()
public int[] relation(DelaunayVertex[] simplex)
-1 means DelaunayVertex is on same side of facet 0 means DelaunayVertex is on the facet +1 means DelaunayVertex is on opposite side of facet
simplex
- an array of Pnts representing a simplex
IllegalArgumentExcpetion
- if the simplex is degeneratepublic DelaunayVertex subtract(DelaunayVertex p)
p
- the other DelaunayVertex
public java.lang.String toString()
toString
in class java.lang.Object
public Vec2D toVec2D()
public int vsCircumcircle(DelaunayVertex[] simplex)
simplex
- the simplex (as an array of Pnts)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |