Nugget
Loading...
Searching...
No Matches
Functions
psyqo::Bezier Namespace Reference

Functions

Vec2 cubic (const Vec2 &a, const Vec2 &b, const Vec2 &c, const Vec2 &d, FixedPoint<> t)
 Cubic Bezier curve helper function.
 
Vec3 cubic (const Vec3 &a, const Vec3 &b, const Vec3 &c, const Vec3 &d, FixedPoint<> t)
 

Function Documentation

◆ cubic() [1/2]

Vec2 psyqo::Bezier::cubic ( const Vec2 a,
const Vec2 b,
const Vec2 c,
const Vec2 d,
FixedPoint<>  t 
)

Cubic Bezier curve helper function.

Parameters
aStart of the Bezier curve.
bControl point 1.
cControl point 2.
dEnd of the Bezier curve.
tThe point on the curve to sample, from 0.0 to 1.0.
Returns
Vec2 The point on the curve at t.

◆ cubic() [2/2]

Vec3 psyqo::Bezier::cubic ( const Vec3 a,
const Vec3 b,
const Vec3 c,
const Vec3 d,
FixedPoint<>  t 
)