controltheorylib.mech_vis.circ_mass

circ_mass = <function circ_mass>[source]

Generates a mass object as a circle with centered text.

Parameters:
  • pos (np.ndarray | Sequence[float]) – The position of the center of mass.

  • radius (float) – Radius of the circular mass.

  • font_size (float | None) – Font size of the mass label. If None, scaled proportionally to radius.

  • label (str) – Text displayed inside the mass.

  • label_color (Color) – Color of the label

  • **kwargs (Any) – Additional arguments passed to the Circle constructor (e.g., stroke_width, fill_color, fill_opacity).

Returns:

A Manim VGroup containing the circular mass and its label.

Return type:

VGroup