Line2

data class Line2(ax: Double, ay: Double, bx: Double, by: Double) : Curve2(source)

Constructors

Link copied to clipboard
constructor(ax: Double, ay: Double, bx: Double, by: Double)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun bounds(): Box2
Link copied to clipboard
open override fun direction(t: Double): Vec2
Link copied to clipboard
Link copied to clipboard
open override fun end(): Vec2
Link copied to clipboard
open override fun endpoints(start: Vec2, end: Vec2): Line2
Link copied to clipboard
open override fun inflections(): DoubleArray
Link copied to clipboard
Link copied to clipboard
open override fun isFlat(epsilon: Double): Boolean
Link copied to clipboard
open override fun length(): Double
Link copied to clipboard
open override fun nearestPoint(p: Vec2): Double
Link copied to clipboard
open override fun position(t: Double): Vec2
Link copied to clipboard
open fun range(interval: Interval): Curve2
open override fun range(tMin: Double, tMax: Double): Line2
Link copied to clipboard
open override fun reverse(): Line2
Link copied to clipboard
open override 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
open fun split(unsafeTs: DoubleArray): Array<Curve2>
open override fun split(t: Double): Array<Curve2>
Link copied to clipboard
open override fun start(): Vec2
Link copied to clipboard
open override fun subdivide(error: Double): Array<Vec2>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun transform(m: Matrix3): Line2