salat-first
Version:
Islamic prayer times calculation with special support for Moroccan methods and Maliki madhab
30 lines (29 loc) • 938 B
TypeScript
/**
* Represents geographic coordinates (latitude and longitude)
*/
export declare class Coordinates {
readonly latitude: number;
readonly longitude: number;
/**
* Creates a new coordinates object
* @param latitude Latitude in decimal degrees
* @param longitude Longitude in decimal degrees
*/
constructor(latitude: number, longitude: number);
/**
* Validates the coordinates
* @throws Error if coordinates are invalid
*/
private validate;
/**
* Returns a string representation of the coordinates
*/
toString(): string;
/**
* Checks if two coordinates are approximately equal
* @param other The other coordinates to compare with
* @param precision The precision in degrees (default: 0.0001)
* @returns Whether the coordinates are approximately equal
*/
isApproximatelyEqual(other: Coordinates, precision?: number): boolean;
}