YLScsDrawing.Geometry.Vector.CrossProduct C# (CSharp) Method

CrossProduct() public method

public CrossProduct ( Vector v ) : double
v Vector
return double
        public double CrossProduct(Vector v)
        {
            return _x * v.Y - v.X * _y;
        }

Usage Example

Exemplo n.º 1
0
 public static double DistancePointLine(PointF pt, PointF lnA, PointF lnB)
 {
     Vector v1 = new Vector(lnA, lnB);
     Vector v2 = new Vector(lnA, pt);
     v1 /= v1.Magnitude;
     return Math.Abs(v2.CrossProduct(v1));
 }
All Usage Examples Of YLScsDrawing.Geometry.Vector::CrossProduct