Skip to content

Return Units instead of Float in GeodesicUtils #30

Closed

Description

@LabordePierre

Example:

distanceInM := GeodesicUtils distanceInMetersFrom: anObject absoluteCoordinates to: anotherObject absoluteCoordinates.
distanceInNM:= distanceInM / 1852.

become:

distance := GeodesicUtils distanceFrom: anObject absoluteCoordinates to: anotherObject absoluteCoordinates.
distanceInNM:= distance nauticMile.

Activity

  1. ELePors commented on Nov 27, 2025

    @ELePors
    Contributor

    maybe we need to have both in some cases ... Units are a good solution for flexibility in a lot of demonstrators. Sometimes, the float value is needed for performance issue...

  2. LabordePierre commented on Nov 27, 2025

    @LabordePierre
    ContributorAuthor

    I agree and I wasn't clear: I propose to add a new method and stay the other:

    distanceInM := GeodesicUtils distanceInMetersFrom: anObject absoluteCoordinates to: anotherObject absoluteCoordinates.
    distance := GeodesicUtils distanceFrom: anObject absoluteCoordinates to: anotherObject absoluteCoordinates.
  3. self-assigned this
    on Jan 7, 2026
  4. added a commit that references this issue on Jan 7, 2026
  5. LabordePierre commented on Jan 8, 2026

    @LabordePierre
    ContributorAuthor

    Done in #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions