-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
| public func distanceFrom(_ otherPoint: Self) -> Float { |
These appear to be returning a standard Pythagoras result, but the result is not square rooted. AFAIK this is not meant to be the case but I haven't had time to dig (I only know the DP algorithm at a distance).
If this is meant to be a linear distance, it looks like it needs to be square rooted. Else it might help to modify the function names to indicate that this is a squared result - otherwise it looks like a straightforward distance calculation function.
Metadata
Metadata
Assignees
Labels
No labels