Arrows2D

2D arrows with optional colors, radii, labels, etc.

Components components

Required: Vector2D

Recommended: Position2D

Optional: Radius, Color, Text, ShowLabels, DrawOrder, ClassId

Shown in shown-in

Example example

Simple batch of 2D arrows simple-batch-of-2d-arrows

"""Log a batch of 2D arrows."""

import rerun as rr

rr.init("rerun_example_arrow2d", spawn=True)

rr.log(
    "arrows",
    rr.Arrows2D(
        origins=[[0.25, 0.0], [0.25, 0.0], [-0.1, -0.1]],
        vectors=[[1.0, 0.0], [0.0, -1.0], [-0.7, 0.7]],
        colors=[[255, 0, 0], [0, 255, 0], [127, 0, 255]],
        labels=["right", "up", "left-down"],
        radii=0.025,
    ),
)