Skip to content

data/aircraftDimensions

Interfaces

AircraftDimensions

Defined in: data/aircraftDimensions.ts:13

Properties

length
length: number;

Defined in: data/aircraftDimensions.ts:14

wingspan
wingspan: number;

Defined in: data/aircraftDimensions.ts:15

Variables

ICAO_DIMENSIONS

const ICAO_DIMENSIONS: Readonly<Record<string, AircraftDimensions>>;

Defined in: data/aircraftDimensions.ts:18


CATEGORY_DIMENSIONS

const CATEGORY_DIMENSIONS: Readonly<Record<AircraftCategory, AircraftDimensions>>;

Defined in: data/aircraftDimensions.ts:62

Per-category fallback dimensions for ICAO codes not in the table above. Chosen as a representative mid-size member of each category.


DEFAULT_DIMENSIONS

const DEFAULT_DIMENSIONS: AircraftDimensions;

Defined in: data/aircraftDimensions.ts:73

Default dimensions for unknown aircraft (roughly an A320).

Functions

getRealMaxExtent()

function getRealMaxExtent(dims): number;

Defined in: data/aircraftDimensions.ts:80

Largest real-world extent of the aircraft in meters. Used as the scale target so the model's largest bounding-box axis matches the aircraft's largest physical dimension.

Parameters

dims

AircraftDimensions

Returns

number


getDimensionsForAircraftType()

function getDimensionsForAircraftType(actype): AircraftDimensions;

Defined in: data/aircraftDimensions.ts:89

Resolve real-world dimensions for an aircraft type. Falls back to category dimensions when the ICAO is unknown but the category can be inferred, and to a generic narrow-body as a last resort.

Parameters

actype

string | null | undefined

Returns

AircraftDimensions