/** @packageDocumentation * @module OrbitGT */ declare type float64 = number; import { Bounds } from "../../spatial/geom/Bounds"; import { Coordinate } from "../../spatial/geom/Coordinate"; import { GridIndex } from "./GridIndex"; /** * Class Grid defines an infinite 3D grid of cells. * * @version 1.0 January 2012 */ /** @internal */ export declare class Grid { /** The x origin */ p0: Coordinate; /** The cell X size */ size: Coordinate; /** * Create a new grid. * @param x0 the x origin. * @param y0 the y origin. * @param z0 the z origin. * @param sizeX the cell X size. * @param sizeY the cell Y size. * @param sizeZ the cell Z size. */ constructor(p0: Coordinate, size: Coordinate); /** * Get the cell index of an X position. * @param x the x position. * @return the cell index. */ getCellX(x: float64): float64; /** * Get the cell index of a Y position. * @param y the y position. * @return the cell index. */ getCellY(y: float64): float64; /** * Get the cell index of a Z position. * @param z the z position. * @return the cell index. */ getCellZ(z: float64): float64; /** * Get the cell index of a position. * @param position the position. * @param cellIndex the cell index. */ getCellIndexTo(position: Coordinate, cellIndex: GridIndex): GridIndex; /** * Get the cell index of a position. * @param position the position. * @return the cell index. */ getCellIndex(position: Coordinate): GridIndex; /** * Get the center point of a cell. * @param cellIndex the index of the cell. * @return the center point. */ getCellCenter(cellIndex: GridIndex): Coordinate; /** * Get the bounds of a cell. * @param cellIndex the index of the cell. * @return the bounds. */ getCellBounds(cellIndex: GridIndex): Bounds; /** * Scale the grid. * @param scale the scale factor. * @return the scaled grid. */ scale(scale: float64): Grid; /** * Move the grid. * @param dx the x offset. * @param dy the y offset. * @param dz the z offset. * @return the scaled grid. */ scale3(dx: float64, dy: float64, dz: float64): Grid; /** * The standard toString method. * @see Object#toString */ toString(): string; } export {}; //# sourceMappingURL=Grid.d.ts.map