Skip to content

Returning Nan from normalize is bad #361

@cybersoulK

Description

@cybersoulK

we should probably return a Result from it. or the worst case, panic.
because normalize is used a lot in (distance.1 - distance.2).normalize()
and there is a small chance that they are exactly the same,
and like me for hours, trying to hunt for a bug and not able to replicate it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions