Skip to content

Confusing SignedDistance calculation in QuadraticSegment::signedDistance #175

Answered by Chlumsky
jkb0o asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure I understand your point. The first condition checks if param is between 0 and 1. Otherwise, the second condition splits the remaining possibilities - param lower than 0 or greater than 1. It does so by comparing to 0.5, the value in the middle, but any value between 0 and 1 would work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jkb0o
Comment options

Answer selected by jkb0o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #174 on March 06, 2023 10:42.