StrokePointsBuilder

class StrokePointsBuilder(val width: Double, val mode: StrokePointsMode = StrokePointsMode.NON_SCALABLE_POS, val generateDebug: Boolean = false) : StrokePoints

Constructors

Link copied to clipboard
constructor(width: Double, mode: StrokePointsMode = StrokePointsMode.NON_SCALABLE_POS, generateDebug: Boolean = false)

Properties

Link copied to clipboard
open override val debugPoints: PointArrayList
Link copied to clipboard
open override val debugSegments: ArrayList<MLine>
Link copied to clipboard
val generateDebug: Boolean = false
Link copied to clipboard
open override val mode: StrokePointsMode
Link copied to clipboard
val NSTEPS: Int = 20
Link copied to clipboard
open override val vector: DoubleVectorArrayList
Link copied to clipboard

Functions

Link copied to clipboard
fun addAllCurvesPoints(curves: Curves, join: LineJoin = LineJoin.MITER, startCap: LineCap = LineCap.BUTT, endCap: LineCap = LineCap.BUTT, miterLimit: Double = 10.0, forceClosed: Boolean? = null)
Link copied to clipboard
fun addCap(curr: Curve, ratio: Ratio, kind: LineCap)
Link copied to clipboard
fun addCurvePoints(curr: Curve, nsteps: Int = (curr.length / 10.0).clamp(10.0, 100.0).toInt())
Link copied to clipboard
fun addCurvePointsCap(p0: Point, p3: Point, ratio: Ratio, mid: Point = Point.middle(p0, p3), nsteps: Int = NSTEPS)
Link copied to clipboard
fun addJoin(curr: Curve, next: Curve, kind: LineJoin, miterLimitRatio: Double)
Link copied to clipboard
fun addPoint(pos: Point, normal: Point, width: Double, maxWidth: Double = width)
Link copied to clipboard
fun addPointRelative(center: Point, pos: Point, sign: Double = 1.0)
Link copied to clipboard
fun addTwoPoints(pos: Point, normal: Point, width: Double)
Link copied to clipboard
open fun scale(scale: Double)
Link copied to clipboard
open override fun toString(): String