Closed oliverbooth closed 2 years ago
System.Drawing.Point, System.Numerics.Vector2, UnityEngine.Vector2
bool IsPointOnLine(LineF line); bool IsPointOnLine(Vector2 start, Vector2 end); bool IsPointOnLine(Point start, Point end); bool IsPointOnLine(PointF start, PointF end);
Determines if the current point lies on a specified line.
LineF
No built-in methods support this.
No response
return (y2 - y1) * (x3 - x2) == (y3 - y2) * (x2 - x1);
Added with 02cc897426b803d5af1441d96a8b12e1bef838c9
Type to extend
System.Drawing.Point, System.Numerics.Vector2, UnityEngine.Vector2
Signature
Summary
Parameters
LineF
Benefits
No built-in methods support this.
Drawbacks
No response
Implementation Example
Code of Conduct