ConvexGeometricShape

interface ConvexGeometricShape<V : Vector<V>, A : GeometricTransformation<V>> : GeometricShape<V, A>

A convex GeometricShape.

This interface models a property instead of an object, this may be unusual but consider it as a contract: interfaces are often said to be contracts the implementor has to comply, the contract defined by this interface implies convexity.

Functions

Link copied to clipboard
abstract fun contains(vector: V): Boolean
Link copied to clipboard
abstract fun intersects(other: GeometricShape<V, A>): Boolean
Link copied to clipboard
abstract fun transformed(transformation: A.() -> Unit): GeometricShape<V, A>

Properties

Link copied to clipboard
abstract val centroid: V
Link copied to clipboard
abstract val diameter: Double
Link copied to clipboard
open val radius: Double

Inheritors

Link copied to clipboard
Link copied to clipboard