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
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.
This is similar to this 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.
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.
Here is an example using both sides of the line:
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.