What will Curve2D's get_closest_offset() return if two points occupy the same position in a curve?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ox0zOwra

Say I want to draw a loop using a Curve2D, with two points intersecting (e.g. on x150, y250). Technically both points occupy the same space, but they are on different lengths of Curve2D. The documentation says it “returns the closest offset to to_point”, but then… what does it return in this case?

Probably the first one, but writing a test in code is the best way to answer this.

SteveSmith | 2022-10-22 11:12