[−][src]Function lasy::lit_segment_points
pub fn lit_segment_points<A, B>(
a: A,
br: B,
corner_point_count: u32,
distance_min_point_count: u32,
excess_points: u32
) -> impl Iterator<Item = B> where
A: Into<B> + Weight,
B: Clone + Lerp<Scalar = f32>,
Returns the points that make up a lit segment between a and b including delay for the end corner.
excess_points
are distributed across the distance point count. This is used to allow the
interpolation process to evenly distribute left-over points across a frame.
Point type A
is expected to know its weight, while the point type B
does not need to.
Point type B
should support linear interpolation of all of its attributes.