Example #1
0
 public static bool LeftSide(Line2 line, float x, float y)
 {
     return(Determinant(line, x, y) < 0);
 }
Example #2
0
 /// <summary>
 /// Returns TRUE if point is on right side of line
 /// </summary>
 /// <remarks>
 /// If we draw a horizontal line from left to right,
 /// The right side is considered to be the bottom.
 /// </remarks>
 public static bool RightSide(Line2 line, Vector2 point)
 {
     return(Determinant(line, point) > 0);
 }
Example #3
0
 /// <summary>
 /// Returns TRUE if point is on left side of line
 /// </summary>
 /// <remarks>
 /// If we draw a horizontal line from left to right,
 /// The left side is considered to be the top.
 /// </remarks>
 public static bool LeftSide(Line2 line, Vector2 point)
 {
     return(Determinant(line, point) < 0);
 }