pyinterp.core.geodetic.Box.distance

Box.distance(*args, **kwargs)

Overloaded function.

  1. distance(self: pyinterp.core.geodetic.Box, other: pyinterp.core.geodetic.Box) -> float

Calculate the distance between the two boxes.

Parameters

other (pyinterp.core.geodetic.Box) – The other box to consider.

Returns

the distance between the two boxes in meters.

Return type

float

  1. distance(self: pyinterp.core.geodetic.Box, point: pyinterp.core.geodetic.Point) -> float

Calculate the distance between this instance and a point.

Parameters

point (pyinterp.core.geodetic.Point) – The point to consider.

Returns

the distance between this box and the provided point.

Return type

float