AdimensionalShape

class AdimensionalShape<S : Vector<S>, A : Transformation<S>>(val centroid: S) : Shape<S, A>

A special shape which does not occupy space and does not intersect with any other, not even with itself. It also ignores any transformation.

Constructors

Link copied to clipboard
constructor(centroid: S)

Properties

Link copied to clipboard
open override val centroid: S

The geometric center.

Link copied to clipboard
open override val diameter: Double = 0.0

The largest distance between any pair of vertices.

Link copied to clipboard
open val radius: Double

Half the diameter.

Functions

Link copied to clipboard
open override fun contains(vector: S): Boolean

Check if the shape contains a vector.

Link copied to clipboard
open override fun intersects(other: Shape<S, A>): Boolean

A shape intersects another if any of its points is contained in the other one.

Link copied to clipboard
open override fun transformed(transformation: A.() -> Unit): AdimensionalShape<S, A>

Any transformation is ignored.