Function bezierCubicNormal

calculates normal vector at point t using direction

vec2 bezierCubicNormal(
  const(vec2[]) cp,
  float t
);