Share via


AccelerometerData Struct

Definition

Data representing the devices' three accelerometers.

public value class AccelerometerData : IEquatable<Microsoft::Maui::Devices::Sensors::AccelerometerData>
public readonly struct AccelerometerData : IEquatable<Microsoft.Maui.Devices.Sensors.AccelerometerData>
type AccelerometerData = struct
Public Structure AccelerometerData
Implements IEquatable(Of AccelerometerData)
Inheritance
AccelerometerData
Implements

Constructors

AccelerometerData(Double, Double, Double)

Public constructor for accelerometer data.

AccelerometerData(Single, Single, Single)

Public constructor for accelerometer data.

Properties

Acceleration

Gets the acceleration vector in G's (gravitational force).

Methods

Equals(AccelerometerData)

Compares the underlying Vector3 instances.

Equals(Object)

If equal to another object

GetHashCode()

Get the hash code for object.

ToString()

Returns a string representation of the current values of Acceleration.

Operators

Equality(AccelerometerData, AccelerometerData)

Equality operator for equals.

Inequality(AccelerometerData, AccelerometerData)

Inequality operator.

Applies to