Arrows2D

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

Components

Required: Vector2D

Recommended: Position2D

Optional: Radius, Color, Text, ClassId

Example

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, ), )