Skip to main content

write_points

Function write_points 

Source
pub fn write_points<W: Write>(
    out: &mut W,
    pos_x: &[f32],
    pos_y: &[f32],
    color: Option<&[u8]>,
) -> Result<()>
Expand description

Writes the point section: a # points N marker, a header row, then one line per agent.

The color column appears only if the model carries the lane. A point without a finite position is left out.

ยงErrors

Returns the error of the first write that fails.