Hyperplane

interface Hyperplane<O>(source)

The base class representing a hyperplane in a geometric space.

Parameters

O

The type of object that this hyperplane operates on, which must extend Distanceable.

Inheritors

Functions

Link copied to clipboard
open operator fun contains(obj: O): Boolean

Check if the hyperplane contains a point.

Link copied to clipboard
abstract fun distance(obj: O): Double

Get the distance of a point with respect to this hyperplane. If the distance is zero, the point is on the hyperplane.

Link copied to clipboard
abstract fun location(obj: O): Location

Get the location of a point with respect to this hyperplane.

Link copied to clipboard
abstract fun offset(obj: O): Double

Get the offset of a point with respect to this hyperplane.

Link copied to clipboard
abstract fun reverse(): Hyperplane<O>

Get a hyperplane that is the reverse of this one.