예제 #1
0
    public bool Contains(Vector2 point)
    {
        if (GeometryMath.PointInTriangle(a, b, c, point) ||
            GeometryMath.PointInTriangle(a, c, d, point) ||
            GeometryMath.PointInSegment(a, c, point) ||
            GeometryMath.PointInSegment(b, d, point))
        {
            return(true);
        }


        return(false);
    }