Uses of Class
squidpony.squidmath.CoordDouble
Package | Description |
---|---|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
-
Uses of CoordDouble in squidpony.squidmath
Fields in squidpony.squidmath declared as CoordDouble Modifier and Type Field 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.Polygon. centroid
CoordDouble
Voronoi.Triangle. centroid
CoordDouble[]
Voronoi.Polygon. vertices
Methods in squidpony.squidmath that return CoordDouble Modifier and Type Method Description CoordDouble
CoordDouble. add(double x, double y)
CoordDouble
CoordDouble. add(CoordDouble other)
CoordDouble
CoordDouble. copy()
Constructs an identical copy to this CoordDouble, making a new object that may be mutated independently.CoordDouble
CoordDouble. divide(double x, double y)
Divides the x component of this CoordDouble byx
and the y component byy
.CoordDouble
CoordDouble. divide(CoordDouble other)
Divides the x component of this CoordDouble byother.x
and the y component byother.y
.static CoordDouble
CoordDouble. get(double x, double y)
CoordDouble
DelaunayTriangulator.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(CoordDouble ea, CoordDouble eb)
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(double x, double y)
CoordDouble
CoordDouble. multiply(CoordDouble other)
CoordDouble
CoordDouble. set(double x, double y)
CoordDouble
CoordDouble. set(CoordDouble co)
CoordDouble
CoordDouble. subtract(double x, double y)
CoordDouble
CoordDouble. subtract(CoordDouble other)
Methods in squidpony.squidmath that return types with arguments of type CoordDouble Modifier and Type Method Description OrderedSet<CoordDouble>
Voronoi. getPointSet()
Returns the point set in form of a vector of 2D vectors.Methods in squidpony.squidmath with parameters of type CoordDouble Modifier and Type Method 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 andother
.double
CoordDouble. distance(CoordDouble co)
double
CoordDouble. distanceSq(CoordDouble co)
CoordDouble
CoordDouble. divide(CoordDouble other)
Divides the x component of this CoordDouble byother.x
and the y component byother.y
.double
CoordDouble. dot(CoordDouble other)
Gets the dot product of this CoordDouble andother
.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)
Constructors in squidpony.squidmath with parameters of type CoordDouble Constructor 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 parameters in squidpony.squidmath with type arguments of type CoordDouble Constructor Description DelaunayTriangulator(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.