性能优化

This commit is contained in:
monitor1394
2020-08-18 09:29:23 +08:00
parent 12ce85de9c
commit c926b9efb2
4 changed files with 58 additions and 26 deletions

View File

@@ -455,6 +455,11 @@ namespace XCharts
return color.a == 0 && color.b == 0 && color.g == 0 && color.r == 0;
}
public static bool IsZeroVector(Vector3 pos)
{
return pos.x == 0 && pos.y == 0 && pos.z == 0;
}
public static bool CopyList<T>(List<T> toList, List<T> fromList)
{
if (toList == null || fromList == null) return false;