Companion

object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun of(vertices: NonEmptyList<Vector3D>, tolerance: Double): Either<GeometryException.NotEnoughVertices, LinearRing3D>

Creates a linear ring based on the provided vertices.

fun of(leftVertices: List<Vector3D>, rightVertices: List<Vector3D>, tolerance: Double): NonEmptyList<LinearRing3D>

Creates multiple linear rings from two lists of vertices leftVertices and rightVertices. A list of linear rings are created by iterating over both lists jointly.

Link copied to clipboard
fun ofWithDuplicatesRemoval(leftVertices: NonEmptyList<Vector3D>, rightVertices: NonEmptyList<Vector3D>, tolerance: Double): Either<GeometryException.NotEnoughValidLinearRings, NonEmptyList<LinearRing3D>>

Creates multiple linear rings from two lists of vertices leftVertices and rightVertices. A list of linear rings are created by iterating over both lists jointly. Possible consecutively following point duplicates are removed before construction.