Ejemplo n.º 1
0
        public Memory.IEncodedArray <Vector3> AsVector3Array()
        {
            if (!_Sparse.HasValue)
            {
                return(_MemoryAccessor.AsVector3Array());
            }

            return(MemoryAccessor.CreateVector3SparseArray(_MemoryAccessor, _Sparse.Value.Key, _Sparse.Value.Value));
        }
Ejemplo n.º 2
0
        public IList <Vector3> AsVector3Array()
        {
            var memory = _GetMemoryAccessor();

            if (this._sparse == null)
            {
                return(memory.AsVector3Array());
            }

            var sparseKV = this._sparse._CreateMemoryAccessors(this);

            return(MemoryAccessor.CreateVector3SparseArray(memory, sparseKV.Key, sparseKV.Value));
        }