示例#1
0
    private bool Include(Vector2 point)
    {
        float maxValueY = maxY.GetY(point.x);
        float minValueY = minY.GetY(point.x);

        float maxValueX = maxX.GetX(point.y);
        float minValueX = minX.GetX(point.y);

        return((point.y >= minValueY && point.y <= maxValueY) && (point.x <= maxValueX && point.x >= minValueX));
    }