public final class EuclideanUtils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TRIANGLE_VERTEX_COUNT
Number of vertices in a triangle, i.e.
|
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
convexPolygonToTriangleFan(List<Vector3D> vertices,
Function<List<Vector3D>,T> fn)
Convert a convex polygon defined by a list of vertices into a triangle fan.
|
public static final int TRIANGLE_VERTEX_COUNT
3
.public static <T> List<T> convexPolygonToTriangleFan(List<Vector3D> vertices, Function<List<Vector3D>,T> fn)
T
- triangle result typevertices
- vertices defining a convex polygonfn
- function accepting the vertices of each triangle as a list and returning the object used
to represent that triangle in the result; each argument to this function is guaranteed to
contain 3 verticesIllegalArgumentException
- if fewer than 3 vertices are givenCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.