public static class SweepHullDelaunay2D.Triangle extends Object
Modifier and Type | Field and Description |
---|---|
int |
a
References to points in Delaunay2D.points
|
int |
ab
References to neighbor triangles
|
int |
b
References to points in Delaunay2D.points
|
int |
bc
References to neighbor triangles
|
int |
c
References to points in Delaunay2D.points
|
int |
ca
References to neighbor triangles
|
Vector |
m
Center vector
|
double |
r2
Circumcircle parameters
|
Constructor and Description |
---|
SweepHullDelaunay2D.Triangle(int x,
int y,
int z)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
copyFrom(SweepHullDelaunay2D.Triangle o)
Copy the values from another triangle.
|
(package private) SweepHullDelaunay2D.Orientation |
findOrientation(SweepHullDelaunay2D.Triangle oth)
Find the orientation of the triangles to each other.
|
boolean |
inCircle(Vector opp)
Test whether a point is within the circumference circle.
|
(package private) boolean |
isClockwise(List<Vector> points)
Verify that the triangle is clockwise
|
(package private) void |
makeClockwise(List<Vector> points)
Make the triangle clockwise
|
(package private) void |
replaceEdge(int a,
int b,
int ol,
int ne)
Replace an edge
|
(package private) void |
set(int a,
int ab,
int b,
int bc,
int c,
int ca)
Update the triangle.
|
String |
toString() |
(package private) boolean |
updateCircumcircle(List<Vector> points)
Recompute the location and squared radius of circumcircle.
|
public int a
public int b
public int c
public int ab
public int ca
public int bc
public double r2
public Vector m
public SweepHullDelaunay2D.Triangle(int x, int y, int z)
x
- y
- z
- void replaceEdge(int a, int b, int ol, int ne)
a
- First pointb
- Second pointol
- Previous valuene
- New valuevoid set(int a, int ab, int b, int bc, int c, int ca)
a
- First pointab
- Edgeb
- Second pointbc
- Edgec
- Third pointca
- Edgepublic boolean inCircle(Vector opp)
opp
- Test vectorSweepHullDelaunay2D.Orientation findOrientation(SweepHullDelaunay2D.Triangle oth)
oth
- Other trianglevoid copyFrom(SweepHullDelaunay2D.Triangle o)
o
- object to copy fromboolean updateCircumcircle(List<Vector> points)