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.
Description
Section titled “Description”The curve functions of DrawUtils use it to sample their curves.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
Method details
Section titled “Method details”quadratic
Section titled “quadratic”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
