Function lupnt::PlotFrame

Function Documentation

std::vector<matplot::line_handle> lupnt::PlotFrame(const Vec3 &center, const Mat3 &R)

Draw the three axes of a rotation matrix R as colored arrows (red/green/blue for x/y/z) originating at center.

Used in examples to visualize attitude/frame-rotation results, e.g. plotting a body or LVLH frame triad alongside a propagated trajectory.

Parameters:
  • center – Origin of the frame triad [length units]

  • R – Rotation matrix whose rows are the frame’s basis vectors expressed in the plotting frame

Returns:

Handles to the three drawn arrows (x, y, z axes)