def cubic.at

gralha-svg-render@0.1.0.1 · svg.bend:196

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base

196def cubic.at(+p: Point, +a: Point, +b: Point, +q: Point, +t: F32) -> Point:
197  +u = (1.0 - t : F32)
198  point.add(point.add(point.scale(p, (u * u * u : F32)), point.scale(a, (3.0 * u * u * t : F32))),
199    point.add(point.scale(b, (3.0 * u * t * t : F32)), point.scale(q, (t * t * t : F32))))
200
201@unsafe

Uses (6)

Used by (1)