Пример #1
0
        public static Vec4D GetFromPool(float x = 0f, float y = 0f, float vx = 0f, float vy = 0f)
        {
            Vec4D vec = Pool.Acquire();

            vec.SetTo(x, y, vx, vy);
            return(vec);
        }
Пример #2
0
 public static void RecycleToPool(Vec4D vec)
 {
     Pool.Release(vec);
 }