HermiteCurve

Constructor

HermiteCurve <id> (double p1, double p2, double t1, double t2)

Action

Map the input value to a point on the hermite curve specified by the given parameters. Input value must be in the range [0, 1], as is the output.

Predefined children

input, p1, p2, t1, t2, output,

Example


use core
use base
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 500, 500)
  Circle c (100, 100, 10)
  HermiteCurve hc (0, 1, 0, 0)
  Clock cl (30)
  Modulo mod (0, 50)
  Incr incr (1)
  cl.tick -> incr

  incr.state => mod.left
  mod.result * 0.02 => hc.input
  hc.output * 200 + 100 => c.cx
}

run root
run syshook