Emgu.CV.Structure.LineSegment2DF.Side C# (CSharp) Метод

Side() публичный Метод

Determin which side of the line the 2D point is at
public Side ( PointF point ) : int
point System.Drawing.PointF the point
Результат int
        public int Side(PointF point)
        {
            float res = (P2.X - P1.X) * (point.Y - P1.Y) - (point.X - P1.X) * (P2.Y - P1.Y);
             return res > 0.0f ? 1 :
            res < 0.0f ? -1 : 0;
        }