Polygon2D

data class Polygon2D(val vertices: NonEmptyList<Vector2D>, val tolerance: Double) : AbstractSurface2D

Planar polygon consisting of a list of vertices.

Parameters

vertices

vertices of the polygon must be located in a plane

Constructors

Link copied to clipboard
fun Polygon2D(vertices: NonEmptyList<Vector2D>, tolerance: Double)

Functions

Link copied to clipboard
open override fun contains(point: Vector2D): Boolean

Returns true, if point is located within the surface.

Properties

Link copied to clipboard

List of affine transformation matrices to move and rotate the geometric object.

Link copied to clipboard
open override val tolerance: Double

tolerable threshold value

Link copied to clipboard
val vertices: NonEmptyList<Vector2D>