IOrientationSensor Interface
Namespace: Stride.InputAssembly: Stride.Input.dll
This class represents a sensor of type Orientation. It measures the orientation of device in the real world.
public interface IOrientationSensor : ISensorDevice, IInputDevice
Name | Description | |
---|---|---|
Properties | ||
Pitch | Gets the value of the pitch (in radian). The pitch is the rotation around the lateral axis of the device, that is the Ox axis. |
|
Quaternion | Gets the quaternion specifying the current rotation of the device. |
|
Roll | Gets the value of the roll (in radian). The roll is the rotation around the longitudinal axis of the device, that is the Oy axis. |
|
RotationMatrix | Gets the rotation matrix specifying the current rotation of the device. |
|
Yaw | Gets the value of the yaw (in radian). The yaw is the rotation around the vertical axis of the device, that is the Oz axis. |
Properties
Pitch
Gets the value of the pitch (in radian). The pitch is the rotation around the lateral axis of the device, that is the Ox axis.
float Pitch { get; }
Property Value
Type | Description |
---|---|
System.Single |
Quaternion
Gets the quaternion specifying the current rotation of the device.
Quaternion Quaternion { get; }
Property Value
Type | Description |
---|---|
Quaternion |
Roll
Gets the value of the roll (in radian). The roll is the rotation around the longitudinal axis of the device, that is the Oy axis.
float Roll { get; }
Property Value
Type | Description |
---|---|
System.Single |
RotationMatrix
Gets the rotation matrix specifying the current rotation of the device.
Matrix RotationMatrix { get; }
Property Value
Type | Description |
---|---|
Matrix |
Yaw
Gets the value of the yaw (in radian). The yaw is the rotation around the vertical axis of the device, that is the Oz axis.
float Yaw { get; }
Property Value
Type | Description |
---|---|
System.Single |