/** @packageDocumentation * @module OrbitGT */ declare type int32 = number; declare type float64 = number; /** * Class Unit defines a unit of measure. * * @version 1.0 July 2005 */ /** @internal */ export declare class Unit { /** The "meter" unit code (length) */ static readonly METER: int32; /** The "foot" unit code (length) */ static readonly FOOT: int32; /** The "footUS" unit code (length) */ static readonly FOOT_US: int32; /** The "radian" unit code (angle) */ static readonly RADIAN: int32; /** The "degree" unit code (angle) */ static readonly DEGREE: int32; /** The "unity" unit code (scale) */ static readonly UNITY: int32; /** Define the custom unit 'sexagesimal DMS' (9110) */ private static readonly _UNIT_DMS; /** Define the custom unit 'sexagesimal DM' (9111) */ private static readonly _UNIT_DM; /** The type of units for angles */ private static readonly _TYPE_ANGLE; /** The type of units for length */ private static readonly _TYPE_LENGTH; /** The type of units for time */ private static readonly _TYPE_TIME; /** The type of units for scale */ private static readonly _TYPE_SCALE; /** The code */ private _code; /** The name */ private _name; /** The abbreviation */ private _abbreviation; /** The type */ private _type; /** The target unit code */ private _targetUnitCode; /** The B factor */ private _b; /** The C factor */ private _c; /** The target unit */ private _target; /** * Create a new unit. * @param code the code. * @param name the name. * @param abbreviation the abbreviation. * @param type the type (LENGTH, ANGLE or SCALE). * @param targetUnitCode the target unit code. * @param b the B factor. * @param c the C factor. */ constructor(code: int32, name: string, abbreviation: string, type: string, targetUnitCode: int32, b: float64, c: float64); /** * Get the code. * @return the code. */ getCode(): int32; /** * Get the name. * @return the name. */ getName(): string; /** * Get the abbreviation. * @return the abbreviation. */ getAbbreviation(): string; /** * Get the type (LENGTH, ANGLE or SCALE). * @return the type. */ getType(): string; /** * Check is this is an angle type. * @return true for an angle type. */ isTypeAngle(): boolean; /** * Check is this is a length type. * @return true for a length type. */ isTypeLength(): boolean; /** * Get the target unit code. * @return the target unit code. */ getTargetUnitCode(): int32; /** * Get the B factor. * @return the B factor. */ getB(): float64; /** * Get the C factor. * @return the C factor. */ getC(): float64; /** * Check if another unit is compatible with this one. * @param other the other unit. * @return true if compatible. */ isCompatible(other: Unit): boolean; /** * Convert to the standard unit. * @param value the value. * @return the standard value. */ toStandard(value: float64): float64; /** * Convert to the standard unit. * @param value the value. * @return the standard value. */ to(value: float64): float64; /** * Convert from the standard unit. * @param value the standard value. * @return the value. */ fromStandard(value: float64): float64; /** * Convert from the standard unit. * @param value the standard value. * @return the value. */ from(value: float64): float64; /** * Convert a sexagesimal DMS value to fractional degrees. * @param dms the sexagesimal DMS value. * @return the fractional degrees. */ static dmsToDeg(dms: float64): float64; /** * Convert a sexagesimal DMS value to fractional radians. * @param dms the sexagesimal DMS value. * @return the fractional radians. */ static dmsToRad(dms: float64): float64; /** * Convert fractional degrees to a sexagesimal DMS value. * @param deg the fractional degrees. * @return the sexagesimal DMS value. */ static degToDms(deg: float64): float64; /** * Convert a sexagesimal DM value to fractional degrees. * @param dm the sexagesimal DM value. * @return the fractional degrees. */ static dmToDeg(dm: float64): float64; /** * Convert fractional degrees to a sexagesimal DM value. * @param deg the fractional degrees. * @return the sexagesimal DM value. */ static degToDm(deg: float64): float64; } export {}; //# sourceMappingURL=Unit.d.ts.map