csharp
public sealed class QuaternionDrawerThree boxes of degrees over a rotation that is stored as a quaternion.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ The angles are a view and the quaternion is the value. Editing one box converts the three back into a rotation, so a value that came from a gizmo and cannot be expressed exactly in Euler angles is only ever approximated on screen — see EulerAngles for what gimbal lock costs and why it costs it here rather than in the model.
Fields and properties (1)
protected override IReadOnlyList<string> AxesWhat each box is called.
Methods (2)
protected override float Component(Quaternion value, int axis)Pulls a component out of a value.
protected override Quaternion Replace(Quaternion value, int axis, float component)Puts a component back into a value.
Used by (2)
- DrawerRegistryVixen.Editor.Inspector
- DrawerTestsVixen.Editor.Inspector.Tests