import { Point as MilPoint } from '@ngageoint/simple-features-js'; import { GridTile } from '../tile/GridTile'; import { Pixel } from '../tile/Pixel'; import { Bounds } from './Bounds'; import { Unit } from './Unit'; /** * Point */ export declare class Point extends MilPoint { /** * Unit */ private unit?; /** * Create a point * * @param longitude * longitude * @param latitude * latitude * @param unit * unit; if null, it will use the default degree unit * @return point */ static point(longitude: number, latitude: number, unit?: Unit): Point; /** * Create a point in degrees * * @param longitude * longitude in degrees * @param latitude * latitude in degrees * @return point in degrees */ static degrees(longitude: number, latitude: number): Point; /** * Create a point in meters * * @param longitude * longitude in meters * @param latitude * latitude in meters * @return point in meters */ static meters(longitude: number, latitude: number): Point; /** * Create a point from a coordinate in a unit to another unit * * @param fromUnit * unit of provided coordinate * @param longitude * longitude * @param latitude * latitude * @param toUnit * desired unit * @return point in unit */ static toUnit(fromUnit: Unit, longitude: number, latitude: number, toUnit: Unit): Point; /** * Create a point from a coordinate in an opposite unit to another unit * * @param longitude * longitude * @param latitude * latitude * @param unit * desired unit * @return point in unit */ static toUnitInverse(longitude: number, latitude: number, unit: Unit): Point; /** * Create a point converting the degrees coordinate to meters * * @param longitude * longitude in degrees * @param latitude * latitude in degrees * @return point in meters */ static degreesToMeters(longitude: number, latitude: number): Point; /** * Create a point converting the meters coordinate to degrees * * @param longitude * longitude in meters * @param latitude * latitude in meters * @return point in degrees */ static metersToDegrees(longitude: number, latitude: number): Point; /** * Create a point * * @param point * point to copy * @param unit * unit * @return point */ static pointFromPoint(point: MilPoint, unit?: Unit): Point; /** * Get the longitude * * @return longitude */ getLongitude(): number; /** * Set the longitude * * @param longitude * longitude */ setLongitude(longitude: number): void; /** * Get the latitude * * @return latitude */ getLatitude(): number; /** * Set the latitude * * @param latitude * latitude */ setLatitude(latitude: number): void; /** * Get the unit * * @return unit */ getUnit(): Unit | undefined; /** * Set the unit * * @param unit * unit */ setUnit(unit?: Unit): void; /** * Is in the provided unit type * * @param unit * unit * @return true if in the unit */ isUnit(unit?: Unit): boolean; /** * Is this point in degrees * * @return true if degrees */ isDegrees(): boolean; /** * Is this point in meters * * @return true if meters */ isMeters(): boolean; /** * Convert to the unit * * @param unit * unit * @return point in units, same point if equal units */ toUnit(unit: Unit): Point; /** * Convert to degrees * * @return point in degrees, same point if already in degrees */ toDegrees(): Point; /** * Convert to meters * * @return point in meters, same point if already in meters */ toMeters(): Point; /** * Get the pixel where the point fits into tile * * @param tile * tile * @return pixel */ getPixelFromTile(tile: GridTile): Pixel; /** * Get the pixel where the point fits into the bounds * * @param width * width * @param height * height * @param bounds * bounds * @return pixel */ getPixel(width: number, height: number, bounds: Bounds): Pixel; /** * Copy the point * * @return point copy */ copy(): Point; /** * {@inheritDoc} */ equals(other: Point): boolean; } //# sourceMappingURL=Point.d.ts.map