Rasterfarm-SDK
Loading...
Searching...
No Matches
Bezier Class Reference

#include <bezier.h>

Static Public Member Functions

template<typename T , uint LENGTH>
static VectorArray< Vector< T, LENGTH > > quadratic (const Vector< T, LENGTH > &begin, const Vector< T, LENGTH > &end, const Vector< T, LENGTH > &control, uint resolution)
 Will return an array of points the size of resolution.
 
template<typename T , uint LENGTH>
static VectorArray< Vector< T, LENGTH > > cubic (const Vector< T, LENGTH > &begin, const Vector< T, LENGTH > &end, const Vector< T, LENGTH > &controlA, const Vector< T, LENGTH > &controlB, uint resolution)
 Will return an array of points the size of resolution.
 

Member Function Documentation

◆ cubic()

template<typename T , uint LENGTH>
static VectorArray< Vector< T, LENGTH > > Bezier::cubic ( const Vector< T, LENGTH > & begin,
const Vector< T, LENGTH > & end,
const Vector< T, LENGTH > & controlA,
const Vector< T, LENGTH > & controlB,
uint resolution )
inlinestatic

Will return an array of points the size of resolution.

Parameters
Thefirst point in the curve.
Thelast point in the curve.
Thefirst control point of the curve.
Thesecond control point of the curve.
resolution
Returns
A vertex-array with size resolution - 2

◆ quadratic()

template<typename T , uint LENGTH>
static VectorArray< Vector< T, LENGTH > > Bezier::quadratic ( const Vector< T, LENGTH > & begin,
const Vector< T, LENGTH > & end,
const Vector< T, LENGTH > & control,
uint resolution )
inlinestatic

Will return an array of points the size of resolution.

Parameters
Thefirst point in the curve.
Thelast point in the curve.
Thecontrol point of the curve.
Thenumber of points between begin and end.
Returns
A vertex-array with size resolution - 2

The documentation for this class was generated from the following file: