python123-ops/moonground/types does not have a README file

    GroundError

    pub(all) suberror GroundError {
    InvalidInput(String)
    } derive(
    Debug
    )

    Invalid input or a numerical failure at a measurement boundary.

    GroundError::message

    fn GroundError::message(self : GroundError) -> String

    Stable description suitable for a command-line diagnostic.

    Covariance2

    pub(all) struct Covariance2 {
    xx : Double
    xy : Double
    yy : Double
    } derive(
    Debug
    )

    Symmetric covariance matrix [[xx, xy], [xy, yy]].

    Covariance2::isotropic

    fn Covariance2::isotropic(stddev : Double) -> Covariance2 raise GroundError

    Isotropic covariance from a strictly positive standard deviation.

    Covariance2::linear_std

    fn Covariance2::linear_std(covariance : Covariance2, coefficients : Point2) -> Double raise GroundError

    Standard deviation of the linear form ax+by under this covariance. Coefficients are not normalized. The supported covariance precision domain matches directional gate evidence; zero coefficients still validate SPD.

    Covariance2::new

    fn Covariance2::new(xx : Double, xy : Double, yy : Double) -> Covariance2 raise GroundError

    Construct a finite, positive-definite measurement covariance.

    Covariance2::validate

    fn Covariance2::validate(self : Covariance2) -> Unit raise GroundError

    Validate positive definiteness without overflowing a determinant product.

    GroundObservation

    pub(all) struct GroundObservation {
    track_id : Int
    position : Point2
    covariance : Covariance2
    } derive(
    Debug
    )

    A measured ground point and its covariance, in metres and metres squared.

    GroundObservation::new

    fn GroundObservation::new(track_id : Int, position : Point2, covariance : Covariance2) -> GroundObservation raise GroundError

    Build a validated ground observation with a positive object identity.

    GroundObservation::validate

    fn GroundObservation::validate(self : GroundObservation) -> Unit raise GroundError

    Revalidate observations submitted through public record syntax.

    PixelTransform

    pub struct PixelTransform {
    scale_x : Double
    scale_y : Double
    offset_x : Double
    offset_y : Double
    } derive(
    Debug
    )

    Axis-aligned pixel coordinates p' = (scale_xx + offset_x, scale_yy + offset_y). Positive scales preserve image orientation. This changes coordinates for resize, crop or padding; it does not resample images.

    PixelTransform::covariance

    fn PixelTransform::covariance(self : PixelTransform, covariance : Covariance2) -> Covariance2 raise GroundError

    Propagate pixel covariance as D Sigma D^T; translation adds no noise.

    PixelTransform::inverse

    Invert coordinates, rejecting an unrepresentable inverse.

    PixelTransform::new

    fn PixelTransform::new(scale_x? : Double, scale_y? : Double, offset_x? : Double, offset_y? : Double) -> PixelTransform raise GroundError

    Construct a finite transformation with strictly positive axis scales.

    PixelTransform::point

    fn PixelTransform::point(self : PixelTransform, point : Point2) -> Point2 raise GroundError

    Transform a finite source pixel into destination pixel coordinates.

    PixelTransform::then

    Compose in application order: self.then(next).point(p) = next(self(p)).

    Point2

    pub(all) struct Point2 {
    x : Double
    y : Double
    } derive(
    Debug
    )

    Two-dimensional point, interpreted in the coordinate space of its API.

    Point2::component_along

    fn Point2::component_along(vector : Point2, direction : Point2) -> Double raise GroundError

    Stable scalar projection along an already normalized direction. Validates a unit vector without normalizing it again; the finite precision domain matches directed velocity evidence, including compensated cancellation.

    Point2::new

    fn Point2::new(x : Double, y : Double) -> Point2 raise GroundError

    Construct a finite two-dimensional point.

    Point2::signed_line_distance

    fn Point2::signed_line_distance(offset : Point2, edge_direction : Point2) -> Double raise GroundError

    Signed perpendicular distance from a line through the origin, positive to the left of its nonzero raw direction. Both vectors are scaled by exact powers of two before the compensated determinant; no boundary epsilon is introduced by a rounded normalized direction. Unsupported loss of nonzero terms or an unrepresentable result raises InvalidInput.

    Point2::to_repr

    Point2::validate

    fn Point2::validate(self : Point2) -> Unit raise GroundError

    Validate even values constructed through public record syntax.

    is_finite

    fn is_finite(value : Double) -> Bool

    Test a scalar before using it in geometry, time, or covariance arithmetic.