Geometry
Geometry(
description: str = ““,
extra_fields: collections.abc.Mapping[str, str | int | float | bool[str, int, float, bool]] =
name: str =”“,
distance: tuple[float, …] ,
coordinates: tuple[tuple[float, …], …] ,
)-> None
Geometry for an interval of an optical path.
A geometry is a piecewise segment placed by its distance array: at least two strictly increasing optical distances, each paired with the coordinate at that point (interpreted using the inventory CRS). Coverage is the half-open span of the array; there is no separate length field. A coil, or other “clump”, is a segment whose coordinates repeat while distance advances. Interpolation between points is piecewise linear in the CRS and never crosses segments; uncovered distance has undefined coordinates.
Methods
| Name | Description |
|---|---|
| interpolate | Return coordinates at the requested optical distances. |
| new | Create a new instance with some attributes updated. |