|
Bifrost SDK
Bifrost SDK documentation
|
Struct for previous, current, and next point for a curve. More...
#include <FCurve.h>
Public Attributes | |
| double | xp = 0 |
| double | yp = 0 |
| double | x = 0 |
| double | y = 0 |
| double | xn = 0 |
| double | yn = 0 |
Struct for previous, current, and next point for a curve.
In general, a segment Bi is defined by the control points Pi0, Pi1, Pi2, and Pi3, such that the the segment Bi passes through Pi0 and Pi3, and has a tangent of Pi1-Pi0 at Pi0, and Pi2-Pi3 at Pi3.
For the ith control point, the incoming tangent is defined by the vector from (xp,yp) to (x,y), that is: (xp,yp) = P(i-1)2 (x,y) = P(i-1)3 = Pi0
Similarly, the outgoing tangent is defined by the vector from (xn,pn) to (x,y), that is:
(xn,yn) = Pi1