salvus.geometry.coordinates.coordinates
Coordinates and coordinates systems.
Classes
CoordinateSystem
CoordinateSystemclass CoordinateSystem(enum.Enum):
def __init__(self): ...The coordinate system.
Coordinates
Coordinatesclass Coordinates(builtins.object):
def __init__(
self,
coordinates: npt.ArrayLike,
coordinate_system: CoordinateSystem | None = None,
reference: _Reference = salvus.geometry.coordinates.references.Absolute,
): ...A class representing 2-D and 3-D coordinates.
Parameters
coordinatesnpt.ArrayLike — The coordinate array of shape [NUM_POINTS, (2, 3)].coordinate_systemCoordinateSystem | None — The coordinate system. Will default to a cartesian system if not given.reference_Reference — The reference for the coordinates. Will default to an absolute reference if not given.
Attributes
coordinate_system CoordinateSystem
coordinate_system CoordinateSystemReturn the coordinate system for the coordinates.
ndim int
ndim intDimensionality of the coordinates.
reference _Reference
reference _ReferenceReturn the reference for the coordinates.