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 CoordDoubleDelaunayTriangulator.Edge. aCoordDoubleDelaunayTriangulator.Triangle. aCoordDoubleVoronoi.Edge. aCoordDoubleVoronoi.Triangle. aCoordDoubleDelaunayTriangulator.Edge. bCoordDoubleDelaunayTriangulator.Triangle. bCoordDoubleVoronoi.Edge. bCoordDoubleVoronoi.Triangle. bCoordDoubleDelaunayTriangulator.Triangle. cCoordDoubleVoronoi.Triangle. cCoordDoubleVoronoi.Polygon. centroidCoordDoubleVoronoi.Triangle. centroidCoordDouble[]Voronoi.Polygon. verticesMethods in squidpony.squidmath that return CoordDouble Modifier and Type Method Description CoordDoubleCoordDouble. add(double x, double y)CoordDoubleCoordDouble. add(CoordDouble other)CoordDoubleCoordDouble. copy()Constructs an identical copy to this CoordDouble, making a new object that may be mutated independently.CoordDoubleCoordDouble. divide(double x, double y)Divides the x component of this CoordDouble byxand the y component byy.CoordDoubleCoordDouble. divide(CoordDouble other)Divides the x component of this CoordDouble byother.xand the y component byother.y.static CoordDoubleCoordDouble. get(double x, double y)CoordDoubleDelaunayTriangulator.Triangle. getNonEdgeVertex(CoordDouble ea, CoordDouble eb)CoordDoubleDelaunayTriangulator.Triangle. getNonEdgeVertex(DelaunayTriangulator.Edge edge)Returns the vertex of this triangle that is not part of the given edge.CoordDoubleVoronoi.Triangle. getNonEdgeVertex(CoordDouble ea, CoordDouble eb)CoordDoubleVoronoi.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.CoordDoubleCoordDouble. multiply(double x, double y)CoordDoubleCoordDouble. multiply(CoordDouble other)CoordDoubleCoordDouble. set(double x, double y)CoordDoubleCoordDouble. set(CoordDouble co)CoordDoubleCoordDouble. subtract(double x, double y)CoordDoubleCoordDouble. 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 CoordDoubleCoordDouble. add(CoordDouble other)booleanDelaunayTriangulator.Triangle. contains(CoordDouble point)Tests if a 2D point lies inside this 2D triangle.booleanVoronoi.Triangle. contains(CoordDouble point)Tests if a 2D point lies inside this 2D triangle.doubleCoordDouble. cross(CoordDouble other)Gets the cross product of this CoordDouble andother.doubleCoordDouble. distance(CoordDouble co)doubleCoordDouble. distanceSq(CoordDouble co)CoordDoubleCoordDouble. divide(CoordDouble other)Divides the x component of this CoordDouble byother.xand the y component byother.y.doubleCoordDouble. dot(CoordDouble other)Gets the dot product of this CoordDouble andother.DelaunayTriangulator.TriangleDelaunayTriangulator. 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.EdgeDelaunayTriangulator. findNearestEdge(CoordDouble point)Returns the edge from the triangle soup nearest to the specified point.DelaunayTriangulator.TriangleDelaunayTriangulator. findNeighbor(DelaunayTriangulator.Triangle triangle, CoordDouble ea, CoordDouble eb)CoordDoubleDelaunayTriangulator.Triangle. getNonEdgeVertex(CoordDouble ea, CoordDouble eb)CoordDoubleVoronoi.Triangle. getNonEdgeVertex(CoordDouble ea, CoordDouble eb)booleanDelaunayTriangulator.Triangle. hasVertex(CoordDouble vertex)Returns true if the given vertex is one of the vertices describing this triangle.booleanVoronoi.Triangle. hasVertex(CoordDouble vertex)Returns true if the given vertex is one of the vertices describing this triangle.booleanDelaunayTriangulator.Triangle. isNeighbor(CoordDouble ea, CoordDouble eb)booleanVoronoi.Triangle. isNeighbor(CoordDouble ea, CoordDouble eb)booleanDelaunayTriangulator.Triangle. isPointInCircumcircle(CoordDouble point)Tests if a given point lies in the circumcircle of this triangle.booleanVoronoi.Triangle. isPointInCircumcircle(CoordDouble point)Tests if a given point lies in the circumcircle of this triangle.CoordDoubleCoordDouble. multiply(CoordDouble other)voidDelaunayTriangulator. removeTrianglesUsing(CoordDouble vertex)Removes all triangles from this triangle soup that contain the specified vertex.CoordDoubleCoordDouble. set(CoordDouble co)CoordDoubleCoordDouble. 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.