MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ to_line_vertex()

Nodes::LineVertex MayaFlux::Kinesis::to_line_vertex ( const SampleResult s,
glm::vec2  thickness_range = { 1.0F, 2.0F } 
)
inlinenoexcept

Project SampleResult to LineVertex.

Parameters
sSource sample
thickness_rangeMin/max line thickness range; scalar linearly interpolates within it
Returns
LineVertex with position, color, and thickness derived from sample

Definition at line 125 of file VertexSampler.hpp.

127 { 1.0F, 2.0F }) noexcept
128{
129 return {
130 .position = s.position,
131 .color = s.color,
132 .thickness = glm::mix(thickness_range.x, thickness_range.y, s.scalar)
133 };
134}
float scalar
Normalised scalar; maps to size (PointVertex) or thickness (LineVertex)

Referenced by to_line_vertices().

+ Here is the caller graph for this function: