MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ConvertCollection

Method ConvertCollection

Source/Engine/Utilities/Utils.cs:276–287  ·  view source on GitHub ↗
(Vector2[] v)

Source from the content-addressed store, hash-verified

274#endif
275
276 internal static Float2[] ConvertCollection(Vector2[] v)
277 {
278 // [Deprecated on 26.05.2022, expires on 26.05.2024]
279 Float2[] result = null;
280 if (v != null && v.Length != 0)
281 {
282 result = new Float2[v.Length];
283 for (int i = 0; i < v.Length; i++)
284 result[i] = v[i];
285 }
286 return result;
287 }
288
289 internal static List<Float2> ConvertCollection(List<Vector2> v)
290 {

Callers 2

UpdateMeshMethod · 0.80
UpdateMeshMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected