Struct nannou_laser::point::RawPoint [−][src]
Expand description
The Point type used for describing raw laser streams.
The point represents the location to which the scanner should point and the colour that the scanner should be at this point.
If two consecutive points have two different colours, the color
values will be linearly
interpolated.
Fields
position: Position
The position of the point. -1
represents the minimum value along the axis and 1
represents the maximum.
color: Rgb
The color of the point.
Implementations
Create a Point at the given position with the given colour.
Convert to a point compatible with a laser frame stream with the given weight.
Create a blank point at [0, 0]
.
Returns a point with the same position as self
but with a black (blank) color.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RawPoint
impl UnwindSafe for RawPoint
Blanket Implementations
Mutably borrows from an owned value. Read more