Package-level declarations

Glimpse geometry utilities.

Types

Link copied to clipboard
data class Circle<T : Number, Comparable<T>>(val center: <Error class: unknown class><T>, val radius: T) : Shape<T>

2D circle with given center point and radius.

Link copied to clipboard
data class Polygon<T : Number, Comparable<T>>(val vertices: List<<Error class: unknown class><T>>, val type: KClass<T>) : Shape<T>

2D polygon with given vertices.

Link copied to clipboard
data class PolygonalChain2<T : Number, Comparable<T>>(val vertices: List<<Error class: unknown class><T>>, val type: KClass<T>)

2D polygonal chain with given vertices.

Link copied to clipboard
data class PolygonalChain3<T : Number, Comparable<T>>(val vertices: List<<Error class: unknown class><T>>, val type: KClass<T>)

3D polygonal chain with given vertices.

Link copied to clipboard
data class PolygonalChain4<T : Number, Comparable<T>>(val vertices: List<<Error class: unknown class><T>>, val type: KClass<T>)

3D polygonal chain in rational form, with given vertices.

Link copied to clipboard
data class Rectangle<T : Number, Comparable<T>>(val left: T, val bottom: T, val right: T, val top: T, val type: KClass<T>) : Shape<T>

2D rectangle.

Link copied to clipboard
data class Section2<T : Number, Comparable<T>>(val start: <Error class: unknown class><T>, val end: <Error class: unknown class><T>)

2D line section with given start and end points.

Link copied to clipboard
interface Shape<T : Number, Comparable<T>>

2D shape.

Functions

Link copied to clipboard
inline fun <T : Number, Comparable<T>> Polygon(vertices: List<<Error class: unknown class><T>>): Polygon<T>

Returns a new Polygon with given vertices.

Link copied to clipboard
inline fun <T : Number, Comparable<T>> PolygonalChain2(vertices: List<<Error class: unknown class><T>>): PolygonalChain2<T>

Returns a new PolygonalChain2 with given vertices.

Link copied to clipboard
inline fun <T : Number, Comparable<T>> PolygonalChain3(vertices: List<<Error class: unknown class><T>>): PolygonalChain3<T>

Returns a new PolygonalChain3 with given vertices.

Link copied to clipboard
inline fun <T : Number, Comparable<T>> PolygonalChain4(vertices: List<<Error class: unknown class><T>>): PolygonalChain4<T>

Returns a new PolygonalChain4 with given vertices.

Link copied to clipboard
inline fun <T : Number, Comparable<T>> Rectangle(left: T, bottom: T, right: T, top: T): Rectangle<T>

Returns a new Rectangle with given left, bottom, right and top side coordinates.