예제 #1
0
        private MVector4(MVector4 vec)
        {
            m_vector = new Vector4(vec.m_vector.X, vec.m_vector.Y, vec.m_vector.Z, vec.m_vector.W);
            MVector4 instance = this;

            addToStorage(ref instance);
        }
예제 #2
0
        private MVector4()
        {
            m_vector = new Vector4(0.0f);
            MVector4 instance = this;

            addToStorage(ref instance);
        }
예제 #3
0
        private MVector4(float x, float y, float z, float w)
        {
            m_vector = new Vector4(x, y, z, w);
            MVector4 instance = this;

            addToStorage(ref instance);
        }
예제 #4
0
        private static void addToStorage(ref MVector4 vec)
        {
            while (m_storage.ContainsKey(m_IDCounter))
            {
                m_IDCounter = (m_IDCounter + 1) % int.MaxValue;
            }

            m_storage.Add(m_IDCounter, vec);
            vec.m_ID = m_IDCounter;
        }
예제 #5
0
        public static int createCopy(int ID)
        {
            MVector4 instance = new MVector4(getFromStorage(ID));

            return(instance.m_ID);
        }
예제 #6
0
        public static int create(float x, float y, float z, float w)
        {
            MVector4 instance = new MVector4(x, y, z, w);

            return(instance.m_ID);
        }
예제 #7
0
        public static int create()
        {
            MVector4 instance = new MVector4();

            return(instance.m_ID);
        }