FSUIPC Client DLL
.NET interface for FSUIPC
FsAltitude Struct Reference

A structure representing an altitude value in MS Flight Simulator. More...

Public Member Functions

 FsAltitude (long FSUnits)
 Create a new altitude value from the 8-Byte MS Flight Simulator units supplied by FSUIPC.
 
long ToFSUnits ()
 Converts this altitude to 8-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0570.
 

Static Public Member Functions

static FsAltitude FromMetres (double Metres)
 Creates a new FsAltitiude from metres.
 
static FsAltitude FromFeet (double Feet)
 Creates a new FsAltitiude from feet.
 

Properties

double Metres [get]
 The altitude in Metres.
 
double Feet [get]
 The altitude in Feet.
 

Detailed Description

A structure representing an altitude value in MS Flight Simulator.

Constructor & Destructor Documentation

◆ FsAltitude()

FsAltitude ( long FSUnits)
inline

Create a new altitude value from the 8-Byte MS Flight Simulator units supplied by FSUIPC.

Parameters
FSUnitsAn 8-Byte integer representing the altitude in FS Units. e.g. from FSUIPC offset 0x0570

Member Function Documentation

◆ FromFeet()

static FsAltitude FromFeet ( double Feet)
inlinestatic

Creates a new FsAltitiude from feet.

Parameters
FeetThe alitiude in feet
Returns

◆ FromMetres()

static FsAltitude FromMetres ( double Metres)
inlinestatic

Creates a new FsAltitiude from metres.

Parameters
MetresThe alitiude in metres
Returns

◆ ToFSUnits()

long ToFSUnits ( )
inline

Converts this altitude to 8-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0570.

Returns
The altitude represented in 8-Byte MS Flight Simulator units.