Dot() public method

public Dot ( Point p ) : float
p Point
return float
Example #1
0
        private bool AngleSign()
        {
            Point a = (_head.Next - _head);
            Point b = (_tail - _head);

            return(Math.Atan2(a.Cross(b), a.Dot(b)) >= 0);
        }
Example #2
0
        private float Angle(Point p)
        {
            Point a = (p.Next - p);
            Point b = (p.Prev - p);

            return((float)Math.Atan2(a.Cross(b), a.Dot(b)));
        }