import { Line as MilLine } from '@ngageoint/simple-features-js'; import { Point } from './Point'; import { Unit } from './Unit'; /** * Line between two points */ export declare class Line extends MilLine { /** * Create a line * * @param point1 * first point * @param point2 * second point * @return line */ static line(point1: Point, point2: Point): Line; /** * Get the first point * * @return first point */ getPoint1(): Point; /** * Set the first point * * @param point1 * first point */ setPoint1(point1: Point): void; /** * Get the second point * * @return second point */ getPoint2(): Point; /** * Set the second point * * @param point2 * second point */ setPoint2(point2: Point): void; /** * Set the points * * @param point1 * first point * @param point2 * second point */ setPoints(point1: Point, point2: Point): void; /** * Get the unit * * @return unit */ getUnit(): Unit | undefined; /** * Is in the provided unit type * * @param unit * unit * @return true if in the unit */ isUnit(unit: Unit): boolean; /** * Is this line in degrees * * @return true if degrees */ isDegrees(): boolean; /** * Is this line 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): Line; /** * Convert to degrees * * @return line in degrees, same line if already in degrees */ toDegrees(): Line; /** * Convert to meters * * @return line in meters, same line if already in meters */ toMeters(): Line; /** * Get the intersection between this line and the provided line * * @param line * line * @return intersection */ intersection(line: Line): Point | undefined; /** * Copy the line * * @return line copy */ copy(): Line; /** * Validate units are the same */ private validateUnits; } //# sourceMappingURL=Line.d.ts.map