Curves

data class Curves(val beziers: List<Bezier>, val closed: Boolean) : Curve, Extra

Constructors

Link copied to clipboard
constructor(vararg curves: Bezier, closed: Boolean = false)
constructor(beziers: List<Bezier>, closed: Boolean)

Types

Link copied to clipboard
data class CurveInfo(val index: Int, val curve: Bezier, val startLength: Double, val endLength: Double, val bounds: Rectangle)

Properties

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

All beziers in this set are contiguous

Link copied to clipboard
Link copied to clipboard
open override var extra: ExtraType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val length: Double
Link copied to clipboard
open override val order: Int
Link copied to clipboard

Functions

Link copied to clipboard
open override fun calc(t: Ratio): Point
Link copied to clipboard
open fun calcOffset(t: Ratio, offset: Double): Point
Link copied to clipboard
fun <T> Extra.extraCache(name: String, block: () -> T): T
Link copied to clipboard
open override fun getBounds(): Rectangle
Link copied to clipboard
fun Curve.getEquidistantPoints(count: Int = this.recommendedDivisions(), out: PointArrayList = PointArrayList()): PointList
Link copied to clipboard
fun Extra.getExtra(name: String): Any?
Link copied to clipboard
fun <T> Extra.getExtraTyped(name: String): T?
Link copied to clipboard
fun Curve.getPoints(count: Int = this.recommendedDivisions(), out: PointArrayList = PointArrayList()): PointList
Link copied to clipboard
Link copied to clipboard
open override fun normal(t: Ratio): Point
Link copied to clipboard
open override fun ratioFromLength(length: Double): Ratio
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Extra.setExtra(name: String, value: Any?)
Link copied to clipboard
fun split(t0: Ratio, t1: Ratio): Curves
Link copied to clipboard
fun splitByLength(len0: Double, len1: Double): Curves
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun tangent(t: Ratio): Point
Link copied to clipboard
Link copied to clipboard
fun Curves.toDashes(pattern: DoubleArray?, offset: Double = 0.0): List<Curves>
Link copied to clipboard
Link copied to clipboard
fun Curves.toStrokePointsList(info: StrokeInfo, mode: StrokePointsMode = StrokePointsMode.NON_SCALABLE_POS, generateDebug: Boolean = false, forceClosed: Boolean? = null): List<StrokePoints>

fun Curves.toStrokePointsList(width: Double, join: LineJoin = LineJoin.MITER, startCap: LineCap = LineCap.BUTT, endCap: LineCap = LineCap.BUTT, miterLimit: Double = 10.0, mode: StrokePointsMode = StrokePointsMode.NON_SCALABLE_POS, lineDash: DoubleList? = null, lineDashOffset: Double = 0.0, generateDebug: Boolean = false): List<StrokePoints>

Useful for drawing

Link copied to clipboard
fun Curve.toVectorPath(out: VectorPath = VectorPath()): VectorPath