接口优化

This commit is contained in:
monitor1394
2021-06-26 21:45:56 +08:00
parent 943145d210
commit 63ec586f36
6 changed files with 94 additions and 41 deletions

View File

@@ -1053,5 +1053,10 @@ namespace XCharts
return true;
}
}
public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax)
{
return pos.x >= xMin && pos.x <= xMax && pos.y <= yMax && pos.y >= yMin;
}
}
}