Function lupnt::PlotArrow3

Function Documentation

matplot::line_handle lupnt::PlotArrow3(const Vec3 &center, const Vec3 &dir, std::string_view line_spec)

Plot a 3D arrow from center along direction dir (drawn as a 2-point line via Plot3).

Used by PlotFrame to draw the three axes of a body/attitude frame for visual inspection of attitude/frame results in cpp/examples/.

Parameters:
  • center – Arrow tail point [length units]

  • dir – Arrow direction/length vector [same units as center]

  • line_spec – matplot++ line style string (e.g. "r-")