Segment1D

class Segment1D : LinearType<Segment1D>

Constructors

Link copied to clipboard
fun Segment1D(start: Double, end: Double)
Link copied to clipboard
fun Segment1D(    start: Double,     c0: Double,     end: Double)
Link copied to clipboard
fun Segment1D(    start: Double,     c0: Double,     c1: Double,     end: Double)

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
fun position(ut: Double): Double
Link copied to clipboard
fun split(t: Double): Array<Segment1D>
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

Properties

Link copied to clipboard
val control: Array<Double>

control points, zero-length iff the segment is linear

Link copied to clipboard
val cubic: Segment1D
Link copied to clipboard
val end: Double
Link copied to clipboard
val linear: Boolean
Link copied to clipboard
val quadratic: Segment1D
Link copied to clipboard
val reverse: Segment1D
Link copied to clipboard
val start: Double

Sources

Link copied to clipboard