TuttleOFX
1
|
Functions | |
double | barycentre (const double a, const double b, const double c, const double d, const double t) |
point2< double > | barycentre (const std::vector< point2< double > > &pts, const double t) |
void | tracerPoint (const point2< double > &p) |
void | drawBezier (const std::vector< point2< double > > &tabPts, const std::size_t nbBezier, const double r, const double v, const double b) |
void | bezierSubdivide (const std::vector< point2< double > > &pts, const std::size_t subdivs, std::vector< point2< double > > &outputPts) |
double tuttle::plugin::warp::bezier::barycentre | ( | const double | a, |
const double | b, | ||
const double | c, | ||
const double | d, | ||
const double | t | ||
) |
Definition at line 11 of file bezier.cpp.
Referenced by barycentre(), bezierSubdivide(), and drawBezier().
point2< double > tuttle::plugin::warp::bezier::barycentre | ( | const std::vector< point2< double > > & | pts, |
const double | t | ||
) |
Definition at line 18 of file bezier.cpp.
References barycentre(), and tuttle::plugin::av::pts.
void tuttle::plugin::warp::bezier::bezierSubdivide | ( | const std::vector< point2< double > > & | pts, |
const std::size_t | subdivs, | ||
std::vector< point2< double > > & | outputPts | ||
) |
[in] | pts | List of four points [A, A tangent, B tangent, B] |
[in] | subdivs | Number of subdivisions |
[out] | outputPts | Output list of bezier points |
Definition at line 51 of file bezier.cpp.
References barycentre(), and tuttle::plugin::av::pts.
Referenced by tuttle::plugin::warp::WarpPlugin::getProcessParams().
void tuttle::plugin::warp::bezier::drawBezier | ( | const std::vector< point2< double > > & | tabPts, |
const std::size_t | nbBezier, | ||
const double | r, | ||
const double | v, | ||
const double | b | ||
) |
Definition at line 32 of file bezier.cpp.
References barycentre(), tuttle::plugin::warp::pointWidth, and tracerPoint().
Referenced by tuttle::plugin::warp::WarpOverlayInteract::draw().
void tuttle::plugin::warp::bezier::tracerPoint | ( | const point2< double > & | p | ) |
Definition at line 26 of file bezier.cpp.
Referenced by drawBezier().