Package | Description |
---|---|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
Modifier and Type | Field and Description |
---|---|
CoordDouble |
DelaunayTriangulator.Edge.a |
CoordDouble |
DelaunayTriangulator.Triangle.a |
CoordDouble |
Voronoi.Edge.a |
CoordDouble |
Voronoi.Triangle.a |
CoordDouble |
DelaunayTriangulator.Edge.b |
CoordDouble |
DelaunayTriangulator.Triangle.b |
CoordDouble |
Voronoi.Edge.b |
CoordDouble |
Voronoi.Triangle.b |
CoordDouble |
DelaunayTriangulator.Triangle.c |
CoordDouble |
Voronoi.Triangle.c |
CoordDouble |
Voronoi.Triangle.centroid |
CoordDouble |
Voronoi.Polygon.centroid |
CoordDouble[] |
Voronoi.Polygon.vertices |
Modifier and Type | Method and Description |
---|---|
CoordDouble |
CoordDouble.add(CoordDouble other) |
CoordDouble |
CoordDouble.add(double x,
double y) |
CoordDouble |
CoordDouble.copy()
Constructs an identical copy to this CoordDouble, making a new object that may be mutated independently.
|
CoordDouble |
CoordDouble.divide(CoordDouble other)
Divides the x component of this CoordDouble by
other.x and the y component by other.y . |
CoordDouble |
CoordDouble.divide(double x,
double y)
Divides the x component of this CoordDouble by
x and the y component by y . |
static CoordDouble |
CoordDouble.get(double x,
double y) |
CoordDouble |
DelaunayTriangulator.Triangle.getNonEdgeVertex(CoordDouble ea,
CoordDouble eb) |
CoordDouble |
Voronoi.Triangle.getNonEdgeVertex(CoordDouble ea,
CoordDouble eb) |
CoordDouble |
DelaunayTriangulator.Triangle.getNonEdgeVertex(DelaunayTriangulator.Edge edge)
Returns the vertex of this triangle that is not part of the given edge.
|
CoordDouble |
Voronoi.Triangle.getNonEdgeVertex(Voronoi.Edge edge)
Returns the vertex of this triangle that is not part of the given edge.
|
CoordDouble[] |
DelaunayTriangulator.getPoints()
Returns the point set in form of a vector of 2D vectors.
|
CoordDouble |
CoordDouble.multiply(CoordDouble other) |
CoordDouble |
CoordDouble.multiply(double x,
double y) |
CoordDouble |
CoordDouble.set(CoordDouble co) |
CoordDouble |
CoordDouble.set(double x,
double y) |
CoordDouble |
CoordDouble.subtract(CoordDouble other) |
CoordDouble |
CoordDouble.subtract(double x,
double y) |
Modifier and Type | Method and Description |
---|---|
OrderedSet<CoordDouble> |
Voronoi.getPointSet()
Returns the point set in form of a vector of 2D vectors.
|
Modifier and Type | Method and Description |
---|---|
CoordDouble |
CoordDouble.add(CoordDouble other) |
boolean |
DelaunayTriangulator.Triangle.contains(CoordDouble point)
Tests if a 2D point lies inside this 2D triangle.
|
boolean |
Voronoi.Triangle.contains(CoordDouble point)
Tests if a 2D point lies inside this 2D triangle.
|
double |
CoordDouble.cross(CoordDouble other)
Gets the cross product of this CoordDouble and
other . |
double |
CoordDouble.distance(CoordDouble co) |
double |
CoordDouble.distanceSq(CoordDouble co) |
CoordDouble |
CoordDouble.divide(CoordDouble other)
Divides the x component of this CoordDouble by
other.x and the y component by other.y . |
double |
CoordDouble.dot(CoordDouble other)
Gets the dot product of this CoordDouble and
other . |
DelaunayTriangulator.Triangle |
DelaunayTriangulator.findContainingTriangle(CoordDouble point)
Returns the triangle from this triangle soup that contains the specified
point or null if no triangle from the triangle soup contains the point.
|
DelaunayTriangulator.Edge |
DelaunayTriangulator.findNearestEdge(CoordDouble point)
Returns the edge from the triangle soup nearest to the specified point.
|
DelaunayTriangulator.Triangle |
DelaunayTriangulator.findNeighbor(DelaunayTriangulator.Triangle triangle,
CoordDouble ea,
CoordDouble eb) |
CoordDouble |
DelaunayTriangulator.Triangle.getNonEdgeVertex(CoordDouble ea,
CoordDouble eb) |
CoordDouble |
Voronoi.Triangle.getNonEdgeVertex(CoordDouble ea,
CoordDouble eb) |
boolean |
DelaunayTriangulator.Triangle.hasVertex(CoordDouble vertex)
Returns true if the given vertex is one of the vertices describing this
triangle.
|
boolean |
Voronoi.Triangle.hasVertex(CoordDouble vertex)
Returns true if the given vertex is one of the vertices describing this
triangle.
|
boolean |
DelaunayTriangulator.Triangle.isNeighbor(CoordDouble ea,
CoordDouble eb) |
boolean |
Voronoi.Triangle.isNeighbor(CoordDouble ea,
CoordDouble eb) |
boolean |
DelaunayTriangulator.Triangle.isPointInCircumcircle(CoordDouble point)
Tests if a given point lies in the circumcircle of this triangle.
|
boolean |
Voronoi.Triangle.isPointInCircumcircle(CoordDouble point)
Tests if a given point lies in the circumcircle of this triangle.
|
CoordDouble |
CoordDouble.multiply(CoordDouble other) |
void |
DelaunayTriangulator.removeTrianglesUsing(CoordDouble vertex)
Removes all triangles from this triangle soup that contain the specified
vertex.
|
CoordDouble |
CoordDouble.set(CoordDouble co) |
CoordDouble |
CoordDouble.subtract(CoordDouble other) |
Constructor and Description |
---|
CoordDouble(CoordDouble other) |
Edge(CoordDouble a,
CoordDouble b) |
Edge(CoordDouble a,
CoordDouble b) |
Polygon(CoordDouble... vertices) |
Triangle(CoordDouble a,
CoordDouble b,
CoordDouble c)
Constructor of the 2D triangle class used to create a new triangle
instance from three 2D vectors describing the triangle's vertices.
|
Triangle(CoordDouble a,
CoordDouble b,
CoordDouble c)
Constructor of the 2D triangle class used to create a new triangle
instance from three 2D vectors describing the triangle's vertices.
|
Constructor and Description |
---|
DelaunayTriangulator(java.util.Collection<CoordDouble> points)
Constructs a new triangulator instance using the specified point set.
|
Voronoi(OrderedSet<CoordDouble> pointSet)
Constructs a new triangulator instance using the specified point set.
|
Copyright © Eben Howard 2012–2022. All rights reserved.