Bezier

object Bezier
class Object
trait Matchable
class Any

Value members

Concrete methods

inline
def apply(vertices: List[Vertex]): Bezier
inline
def apply(start: Vertex, vertices: Vertex*): Bezier
def atUnspecialised(bezier: Bezier, unitInterval: Double): Vertex

Calculate the position of a Bezier curve using the same calculation method regardless of vertex count.

Calculate the position of a Bezier curve using the same calculation method regardless of vertex count.

def fromPoints(vertices: List[Vertex]): Option[Bezier]
def interpolate(a: Vertex, b: Vertex, unitInterval: Double): Vertex
def pure(start: Vertex, vertices: List[Vertex]): Bezier
@tailrec
def reduce(vertices: List[Vertex], unitInterval: Double): Vertex

Extensions

Extensions

extension (b: Bezier)
def at(unitInterval: Double): Vertex

Calculate the position of a Bezier curve using specialised calculations for linear, quadratic and cubic curves.

Calculate the position of a Bezier curve using specialised calculations for linear, quadratic and cubic curves.

def toLineSegments(subdivisions: Int): List[LineSegment]
def toPolygon(subdivisions: Int): Polygon
def toSignal(duration: Seconds): Signal[Vertex]
def toVertices(subdivisions: Int): List[Vertex]