| 1234567891011121314151617181920212223242526272829303132 |
- using System.Text.Json.Serialization;
- namespace SOTF_Struct.Generic {
- public class Rotation {
- [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
- public double x { get; set; } = 0.0f;
- [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
- public double y { get; set; } = 0.0f;
- [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
- public double z { get; set; } = 0.0f;
- [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
- public double w { get; set; } = 0.0f;
- }
- public class RotationD<T> {
- [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
- public T x { get; set; }
- [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
- public T y { get; set; }
- [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
- public T z { get; set; }
- [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
- public T w { get; set; }
- }
- }
|