public VisibleCache <T> GetProperty <T>(string propertyKey) { VisibleCache value = null; if (!Properties.TryGetValue(propertyKey, out value)) { value = new VisibleCache <T>(Visible.Length); Properties[propertyKey] = value; } value = Properties[propertyKey]; return(value as VisibleCache <T>); }
public ClustersCache(int count) { TRSmatrices = new VisibleCache <Matrix4x4>(count); BoundingBuffer = new BoundingSphere[count]; Visible = new bool[count]; }