Rotation3D
public readonly struct Rotation3D3D rotation expressed as Euler angles in degrees (Apple Swift parity:
Rotation3D from RealityKit / SwiftCharts3D).
Fields
Section titled “Fields”
PitchDeg
Section titled “PitchDeg”public readonly float PitchDegReturns
System.Single
YawDeg
Section titled “YawDeg”public readonly float YawDegReturns
System.Single
RollDeg
Section titled “RollDeg”public readonly float RollDegReturns
System.Single
Constructors
Section titled “Constructors”
Rotation3D(float, float, float)
Section titled “Rotation3D(float, float, float)”public Rotation3D(float pitchDeg, float yawDeg, float rollDeg)Creates an Euler rotation in degrees around the X (pitch), Y (yaw), and Z (roll) axes.
Parameters
| Name | Type |
|---|---|
pitchDeg |
System.Single |
yawDeg |
System.Single |
rollDeg |
System.Single |
Methods
Section titled “Methods”
ToQuaternion()
Section titled “ToQuaternion()”public Quaternion ToQuaternion()Converts the stored Euler angles to the Unity quaternion used to rotate 3D chart symbols.
Returns
UnityEngine.Quaternion
Pitch(float)
Section titled “Pitch(float)”public static Rotation3D Pitch(float deg)Creates a rotation containing only an X-axis pitch in degrees.
Parameters
| Name | Type |
|---|---|
deg |
System.Single |
Returns
ChartGuru.Rotation3D
Yaw(float)
Section titled “Yaw(float)”public static Rotation3D Yaw(float deg)Creates a rotation containing only a Y-axis yaw in degrees.
Parameters
| Name | Type |
|---|---|
deg |
System.Single |
Returns
ChartGuru.Rotation3D
Roll(float)
Section titled “Roll(float)”public static Rotation3D Roll(float deg)Creates a rotation containing only a Z-axis roll in degrees.
Parameters
| Name | Type |
|---|---|
deg |
System.Single |
Returns
ChartGuru.Rotation3D
Properties
Section titled “Properties”
Identity
Section titled “Identity”public static Rotation3D Identity { get; }Returns
ChartGuru.Rotation3D