Esempio n. 1
0
        public SQuantizedExtent3D ComputeQuantizedTileExtent(IGridCoord tile, IQuantizedExtentGrid grid)
        {
            var min = new SQuantizedPoint3D(
                (grid.CellSizeX * tile.Col + MinX),
                (grid.CellSizeY * tile.Row + MinY),
                MinZ
                );

            var max = new SQuantizedPoint3D(
                (Math.Min(min.X + grid.CellSizeX, MaxX)),
                (Math.Min(min.Y + grid.CellSizeY, MaxY)),
                MaxZ
                );

            return(new SQuantizedExtent3D(min, max));
        }
Esempio n. 2
0
 public SQuantizedExtent3D(BinaryReader reader)
 {
     m_min = reader.ReadSQuantizedPoint3D();
     m_max = reader.ReadSQuantizedPoint3D();
 }
Esempio n. 3
0
 public SQuantizedExtent3D(Extent3D extent)
 {
     m_min = new SQuantizedPoint3D((int)extent.MinX, (int)extent.MinY, (int)extent.MinZ);
     m_max = new SQuantizedPoint3D((int)extent.MaxX, (int)extent.MaxY, (int)extent.MaxZ);
 }
Esempio n. 4
0
 public SQuantizedExtent3D(SQuantizedPoint3D min, SQuantizedPoint3D max)
 {
     m_min = min;
     m_max = max;
 }
Esempio n. 5
0
 public SQuantizedExtent3D(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
 {
     m_min = new SQuantizedPoint3D(minX, minY, minZ);
     m_max = new SQuantizedPoint3D(maxX, maxY, maxZ);
 }