Bifrost SDK
Bifrost SDK documentation
Bifrost::Math::FCurve::ControlPoints Struct Reference

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
 

Detailed Description

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

Definition at line 107 of file FCurve.h.

Member Data Documentation

◆ x

double Bifrost::Math::FCurve::ControlPoints::x = 0

Definition at line 110 of file FCurve.h.

◆ xn

double Bifrost::Math::FCurve::ControlPoints::xn = 0

Definition at line 112 of file FCurve.h.

◆ xp

double Bifrost::Math::FCurve::ControlPoints::xp = 0

Definition at line 108 of file FCurve.h.

◆ y

double Bifrost::Math::FCurve::ControlPoints::y = 0

Definition at line 111 of file FCurve.h.

◆ yn

double Bifrost::Math::FCurve::ControlPoints::yn = 0

Definition at line 113 of file FCurve.h.

◆ yp

double Bifrost::Math::FCurve::ControlPoints::yp = 0

Definition at line 109 of file FCurve.h.