Uses of Class
com.irurueta.geometry.Triangle2D
Packages that use Triangle2D
Package
Description
This package contains classes to work with basic geometric entities such as
2D or 3D points, lines, planes, 2D or 3D triangles or polygons, circles,
spheres, rotations, transformations etc.
-
Uses of Triangle2D in com.irurueta.geometry
Fields in com.irurueta.geometry with type parameters of type Triangle2DModifier and TypeFieldDescriptionprivate List<Triangle2D> Polygon2D.trianglesList containing triangles found after triangulating this polygon.Methods in com.irurueta.geometry that return Triangle2DModifier and TypeMethodDescriptionTransformation2D.transformAndReturnNew(Triangle2D inputTriangle) Transforms provided triangle using this transformation and returns a new one.Methods in com.irurueta.geometry that return types with arguments of type Triangle2DModifier and TypeMethodDescriptionPolygon2D.getTriangles()Returns a list of triangles forming this polygon.private static List<Triangle2D> VanGoghTriangulator2D.internalTriangulate(List<Point2D> verticesCopy, List<int[]> indices, List<Point2D> originalVertices) Internal method that computes the actual triangulation.abstract List<Triangle2D> Triangulator2D.triangulate(Polygon2D polygon) Triangulates provided polygon by dividing it into a set of triangles.abstract List<Triangle2D> Triangulator2D.triangulate(List<Point2D> vertices) Triangulates a polygon formed by provided vertices.abstract List<Triangle2D> Triangulator2D.triangulate(List<Point2D> vertices, List<int[]> indices) Triangulates a polygon formed by provided vertices.VanGoghTriangulator2D.triangulate(Polygon2D polygon) Triangulates provided polygon by dividing it into a set of triangles.VanGoghTriangulator2D.triangulate(List<Point2D> vertices) Triangulates a polygon formed by provided vertices.VanGoghTriangulator2D.triangulate(List<Point2D> vertices, List<int[]> indices) Triangulates a polygon formed by provided vertices.Methods in com.irurueta.geometry with parameters of type Triangle2DModifier and TypeMethodDescriptionstatic doubleTriangle2D.area(Triangle2D triangle) Returns area of provided triangle.static Point2DTriangle2D.center(Triangle2D t) Computes the center of provided triangle.static voidTriangle2D.center(Triangle2D t, Point2D result) Computes the center of provided triangle and stores the result in provided result point.private static booleanVanGoghTriangulator2D.isEar(Triangle2D triangle, List<Point2D> polygonVertices) Determines if provided triangle can be considered as an ear of the remaining polygon formed by provided vertices.static booleanTriangle2D.isInside(Triangle2D triangle, Point2D point) Indicates whether provided point lies inside provided triangle or not.static booleanTriangle2D.isInside(Triangle2D triangle, Point2D point, double threshold) Indicates whether provided point lies inside provided triangle or not up to a certain threshold.static doubleTriangle2D.perimeter(Triangle2D triangle) Returns perimeter of provided triangle.static doubleTriangle2D.shortestDistance(Triangle2D triangle, Point2D point) Computes the shortest distance from a given point to the boundaries of provided triangle, considering its boundaries as lines with a finite length.static doubleTriangle2D.signedArea(Triangle2D triangle) Returns area of provided triangle with sign.voidTransformation2D.transform(Triangle2D triangle) Transforms and updates provided input triangle using this transformation.voidTransformation2D.transform(Triangle2D inputTriangle, Triangle2D outputTriangle) Transforms provided input triangle using this transformation and stores the result into provided output triangle instance.Transformation2D.transformAndReturnNew(Triangle2D inputTriangle) Transforms provided triangle using this transformation and returns a new one.