Note that there are some explanatory texts on larger screens.

plurals
  1. PODetermining which side of a line is on, given 3rd point indicating desired side
    primarykey
    data
    text
    <p>I'm trying to come up with a function that takes two points that are used to form a line, a reference point, and a point, and outputs True if the point is on the line formed, or is </p> <p>a point that is known to on the outside part of the line, and point that needs determining if it is on the outside or inside half the area divided by the line formed. In this case, on the line counts as outside.</p> <p>This is similar to <a href="https://stackoverflow.com/questions/3461453/determine-which-side-of-a-line-a-point-lies">this</a> question, but the desired side could have a positive or a negative cross-product, so a somewhat different approach is required. I've already tried a few times to get it to work with cross products and at this point I'm just looking for something that'll work for sure.</p> <p>Edit: Inside/outside is used simply due to the nature of the problem, seemed better than "side a" and "side b" or the "left side" and "right side". In this case, the "inside" points will be ignored, while the "outside" points will remain.</p> <p>Here is an example using both sides of the line:</p> <p><img src="https://i.stack.imgur.com/Saoyk.jpg" alt="enter image description here"></p> <p>While they are squares, each represents a "point". The red squares are the two that make up the line. There is then a green and a blue point. The green point is inside for the blue point, and the blue point is inside to the These represent the outside points. The blue circles represent the points that are considered outside. The blue circled points are considered outside points in reference to the blue point, while the green circled points are considered outside points to the green point. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload