TraceBezier

Class to get T value interpolated by Bezier Curvein in given time, useful for contigious paths Class requires at least 3 points to work correctly

Members

Functions

add
void add(T point, float time)
Undocumented in source. Be warned that the author may not have intended to support it.
addAndRecompute
void addAndRecompute(T point, float time)
Undocumented in source. Be warned that the author may not have intended to support it.
computeAll
void computeAll()
Undocumented in source. Be warned that the author may not have intended to support it.
computeSupportingPoint
T computeSupportingPoint(DataPoint prev, DataPoint curr, DataPoint next)
Undocumented in source. Be warned that the author may not have intended to support it.
get
T get(float time)
Undocumented in source. Be warned that the author may not have intended to support it.
hasRoundEnds
bool hasRoundEnds()
Undocumented in source. Be warned that the author may not have intended to support it.
lengthBetween
float lengthBetween(float start, float end, size_t precision)
Undocumented in source. Be warned that the author may not have intended to support it.
mix
T mix(DataPoint curr, DataPoint next, float blend)
Undocumented in source. Be warned that the author may not have intended to support it.
normalizeTime
void normalizeTime(float end)

Normalize time values based on trace width

recompute
void recompute(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAndRecompute
void removeAndRecompute(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
roundEnds
void roundEnds()

first and last point should be the same

totalLength
float totalLength()
Undocumented in source. Be warned that the author may not have intended to support it.
totalTime
float totalTime()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

DataPoint
struct DataPoint
Undocumented in source.

Variables

data
SortedVector!(DataPoint, "a.time < b.time") data;
Undocumented in source.
indexGetter
TimeIndexGetter indexGetter;
Undocumented in source.

Meta