surfaces module

class jinete.models.surfaces.GeometricSurface(metric, *args, **kwargs)[source]

Bases: jinete.models.surfaces.Surface

__init__(metric, *args, **kwargs)[source]

The constructor of the class.

cached_distance: Dict[Position, Dict[Position, float]] = None
distance(position_a, position_b)[source]
Return type

float

get_or_create_position(*args, **kwargs)
Return type

Position

time(position_a, position_b, **kwargs)[source]
Return type

float

class jinete.models.surfaces.Surface(positions=None, uuid=None, *args, **kwargs)[source]

Bases: jinete.models.abc.Model, abc.ABC

__init__(positions=None, uuid=None, *args, **kwargs)[source]

The constructor of the class.

abstract distance(position_a, position_b)[source]
Return type

float

get_or_create_position(*args, **kwargs)[source]
Return type

Position

positions: Set[Position] = None
abstract time(position_a, position_b, **kwargs)[source]
Return type

float

uuid: UUID = None