Intersects() public method

public Intersects ( LineSegment other, IntersectionCheckOptions option ) : bool
other LineSegment
option IntersectionCheckOptions
return bool
Exemplo n.º 1
0
        public bool IntersectsWithLineSegment(LineSegment segment, IntersectionCheckOptions option)
        {
            bool result = false;

            for (int i = 1; i < Count && !result; i++)
            {
                result = segment.Intersects(new LineSegment(this[i - 1], this[i]), option);
            }
            return(result);
        }