EulerAngle
Summary
Represents a 3D rotation expressed as intrinsic Euler angles (pitch, yaw, and roll) with a specified rotation order.
Definition
Namespace: SDT4.Managed.Core.Math
Assembly: SDT4.Managed.Core.dll
struct EulerAngle
Implements:
IEquatable<EulerAngle>
Fields
| Name | Type | Description |
|---|---|---|
public static DefaultOrder |
EulerOrder | The default intrinsic rotation order (EulerOrder.YXZ). |
public x |
Single | The pitch rotation angle in radians (rotation about the X-axis). |
public y |
Single | The yaw rotation angle in radians (rotation about the Y-axis). |
public z |
Single | The roll rotation angle in radians (rotation about the Z-axis). |
public Order |
EulerOrder | The sequence in which the rotational axes are evaluated. |
Properties
| Name | Type | Description |
|---|---|---|
public get; Pitch |
Single | Gets the pitch angle in radians (equivalent to EulerAngle.x). |
public get; Yaw |
Single | Gets the yaw angle in radians (equivalent to EulerAngle.y). |
public get; Roll |
Single | Gets the roll angle in radians (equivalent to EulerAngle.z). |
Methods
public Quaternion ToQuaternion()
Summary: Converts this Euler angle representation into an equivalent orientation Quaternion.
Returns:
- Quaternion: A quaternion representing the rotation.
public Matrix3x3f ToRotationMatrix()
Summary: Converts this Euler angle representation into a Matrix3x3f.
Returns:
- Matrix3x3f: A matrix representing the rotation.
public Boolean Equals(EulerAngle other)
Summary: Determines whether the specified EulerAngle is equal to the current instance.
Parameters:
other(EulerAngle): The Euler angle to compare with this instance.
Returns:
- Boolean:
if all angles and the rotation order match; otherwise, .
public virtual Boolean Equals(Object? obj)
Summary: Determines whether the specified object is an EulerAngle and is equal to the current instance.
Parameters:
obj(Object?): The object to compare with this instance.
Returns:
- Boolean:
if the object is an EulerAngle and matches all angles and rotation order; otherwise, .
public virtual Int32 GetHashCode()
Summary: Returns the hash code for this Euler angle instance.
Returns:
- Int32: A 32-bit signed integer hash code.
public virtual String ToString()
Summary: Returns a culture-invariant string representation of the Euler angles in degrees, alongside its rotation order.
Returns:
- String: A formatted string displaying rotation order, pitch, yaw, and roll in degrees.