Line2

data class Line2(val direction: Vec2, val originOffSet: Double, val precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE) : Hyperplane<Vec2> (source)

Constructors

Link copied to clipboard
constructor(direction: Vec2, originOffSet: Double, precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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

Check if the hyperplane contains a point.

Link copied to clipboard
open override fun distance(obj: Vec2): 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
open override fun location(obj: Vec2): Location

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

Link copied to clipboard
open override fun offset(obj: Vec2): Double

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

Link copied to clipboard
open override fun reverse(): Line2

Get a hyperplane that is the reverse of this one.