raillabel.format.point3d module

class raillabel.format.point3d.Point3d(x: float, y: float, z: float)

Bases: object

A point in the 3D space.

classmethod from_json(json: tuple[float, float, float]) Point3d

Construct an instant of this class from RailLabel JSON data.

to_json() tuple[float, float, float]

Export this object into the RailLabel JSON format.

x: float

The x-coordinate of the point.

y: float

The y-coordinate of the point.

z: float

The z-coordinate of the point.