Exemple #1
0
    public bool Intersect(Vector2 a, Vector2 b)
    {
        if (GeometryMath.SegmentIntersect(this.a, this.b, a, b) ||
            GeometryMath.SegmentIntersect(this.b, this.c, a, b) ||
            GeometryMath.SegmentIntersect(this.c, this.d, a, b) ||
            GeometryMath.SegmentIntersect(this.d, this.a, a, b))
        {
            return(true);
        }


        return(false);
    }