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
Link copied to clipboard
open override val diameter: Double = 0.0
Link copied to clipboard
open val radius: Double

Functions

Link copied to clipboard
open override fun contains(vector: S): Boolean
Link copied to clipboard
open override fun intersects(other: Shape<S, A>): Boolean
Link copied to clipboard
open override fun transformed(transformation: A.() -> Unit): AdimensionalShape<S, A>

Any transformation is ignored.