Curve2

Functions

Link copied to clipboard
open fun bounds(): Box2
Link copied to clipboard
abstract fun direction(t: Double): Vec2
Link copied to clipboard
open fun end(): Vec2
Link copied to clipboard
abstract fun endpoints(start: Vec2, end: Vec2): Curve2
Link copied to clipboard
abstract fun inflections(): DoubleArray
Link copied to clipboard
Link copied to clipboard
abstract fun isFlat(epsilon: Double): Boolean
Link copied to clipboard
abstract fun length(): Double
Link copied to clipboard
abstract fun nearestPoint(p: Vec2): Double
Link copied to clipboard
abstract fun position(t: Double): Vec2
Link copied to clipboard
open fun range(interval: Interval): Curve2
open fun range(tMin: Double, tMax: Double): Curve2
Link copied to clipboard
abstract fun reverse(): Curve2
Link copied to clipboard
abstract fun signedArea(): Double

Given a ring of curves, the sum of area() will be the area enclosed by that ring. For clockwise rings, the sum will be negative, for counter-clockwise rings it will be positive.

Link copied to clipboard
abstract fun split(t: Double): Array<Curve2>
open fun split(unsafeTs: DoubleArray): Array<Curve2>
Link copied to clipboard
open fun start(): Vec2
Link copied to clipboard
abstract fun subdivide(error: Double): Array<Vec2>
Link copied to clipboard
abstract fun transform(m: Matrix3): Curve2