hoa_tools.types
Common types used across the library.
ArrayCoordinate
pydantic-model
Bases: BaseModel
A single coordinate in array space.
Fields:
to_physical_coordinate
to_physical_coordinate(*, voxel_size: float) -> PhysicalCoordinate
Given a voxel size, convert this array coordinate to a physical coordinate.
PhysicalCoordinate
pydantic-model
Bases: BaseModel
A single coordinate in physical space.
Fields:
to_array_coordinate
to_array_coordinate(*, voxel_size: float) -> ArrayCoordinate
Given a voxel size, convert this physical coordinate to an array coordinate.
transform
transform(t: Transform) -> Self
Transform this coordinate.
Notes
The transform is applied in zyx order.