Segment1D

@Serializable
data class Segment1D(val start: Double, val control: Array<Double>, val end: Double) : LinearType<Segment1D> (source)

Constructors

Link copied to clipboard
constructor(start: Double, control: Array<Double>, end: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val end: Double
Link copied to clipboard

control points, zero-length iff the segment is linear

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

Functions

Link copied to clipboard
fun adaptivePositions(distanceTolerance: Double = 25.0): List<Double>
Link copied to clipboard
fun adaptivePositionsWithT(distanceTolerance: Double = 25.0): List<Pair<Double, Double>>
Link copied to clipboard
open operator override fun div(scale: Double): Segment1D
Link copied to clipboard
fun equidistantPositions(pointCount: Int, distanceTolerance: Double = 0.5): List<Double>
Link copied to clipboard
open operator override fun minus(right: Segment1D): Segment1D
Link copied to clipboard
open operator override fun plus(right: Segment1D): Segment1D
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun sub(t0: Double, t1: Double): Segment1D
Link copied to clipboard
open operator override fun times(scale: Double): Segment1D
Link copied to clipboard
open override fun toString(): String