Share via


MagnetometerReading.MagneticFieldX Property

Definition

Gets the magnetic field strength in microteslas along the X axis.

public:
 property float MagneticFieldX { float get(); };
float MagneticFieldX();
public float MagneticFieldX { get; }
var single = magnetometerReading.magneticFieldX;
Public ReadOnly Property MagneticFieldX As Single

Property Value

Single

float

The magnetic field strength in microteslas along the X axis.

Remarks

The accuracy of this value depends on the state of magnetometer calibration reflected in the DirectionalAccuracy property.

Applies to