Skip to content

Bezier

final class Bezier
Package: dev.joid.lib.utils.geom · Module: core · Source: Bezier.java

Computes the points of quadratic and cubic Bézier curves.

The curve functions of DrawUtils use it to sample their curves.

ReturnsSignatureSummary
Pointquadratic(double t, Point start, Point control, Point end) staticReturns the point at t (from 0D at start to 1D at end) of the curve pulled toward control.
Pointcubic(double t, Point start, Point startControl, Point endControl, Point end) staticReturns the point at t (from 0D at start to 1D at end) of the curve that leaves start toward startControl and reaches end from endControl.

Point quadratic(double t, Point start, Point control, Point end) static

Returns the point at t (from 0D at start to 1D at end) of the curve pulled toward control.

Point cubic(double t, Point start, Point startControl, Point endControl, Point end) static

Returns the point at t (from 0D at start to 1D at end) of the curve that leaves start toward startControl and reaches end from endControl.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page