Class FRD
Body-fixed coordinate space common for aerial vehicles: Forward (X), Right (Y), Down (Z).
Implements
Inherited Members
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public class FRD : ICoordinateSpace
Methods
ConvertAngularVelocityFromRUF(Vector3)
Converts a Unity (RUF) angular velocity to FRD space.
Declaration
public static Vector3 ConvertAngularVelocityFromRUF(Vector3 angularVelocity)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | angularVelocity | The angular velocity in Unity (RUF) space. |
Returns
| Type | Description |
|---|---|
| Vector3 | The equivalent angular velocity in FRD space. |
ConvertAngularVelocityToRUF(Vector3)
Converts an FRD angular velocity to Unity (RUF) space.
Declaration
public static Vector3 ConvertAngularVelocityToRUF(Vector3 angularVelocity)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | angularVelocity | The angular velocity in FRD space. |
Returns
| Type | Description |
|---|---|
| Vector3 | The equivalent angular velocity in Unity (RUF) space. |
ConvertFromRUF(Quaternion)
Converts a Unity (RUF) quaternion to FRD space.
Declaration
public static Quaternion ConvertFromRUF(Quaternion q)
Parameters
| Type | Name | Description |
|---|---|---|
| Quaternion | q | The quaternion in Unity (RUF) space. |
Returns
| Type | Description |
|---|---|
| Quaternion | The equivalent quaternion in FRD space. |
ConvertFromRUF(Vector3)
Converts a Unity (RUF) vector to FRD space.
Declaration
public static Vector3 ConvertFromRUF(Vector3 v)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | v | The vector in Unity (RUF) space. |
Returns
| Type | Description |
|---|---|
| Vector3 | The equivalent vector in FRD space. |
ConvertToRUF(Quaternion)
Converts an FRD quaternion to Unity (RUF) space.
Declaration
public static Quaternion ConvertToRUF(Quaternion q)
Parameters
| Type | Name | Description |
|---|---|---|
| Quaternion | q | The quaternion in FRD space. |
Returns
| Type | Description |
|---|---|
| Quaternion | The equivalent quaternion in Unity (RUF) space. |
ConvertToRUF(Vector3)
Converts an FRD vector to Unity (RUF) space.
Declaration
public static Vector3 ConvertToRUF(Vector3 v)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | v | The vector in FRD space. |
Returns
| Type | Description |
|---|---|
| Vector3 | The equivalent vector in Unity (RUF) space. |