Rotation.cs 952 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Text.Json.Serialization;
  2. namespace SOTF_Struct.Generic {
  3. public class Rotation {
  4. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  5. public double x { get; set; } = 0.0f;
  6. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  7. public double y { get; set; } = 0.0f;
  8. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  9. public double z { get; set; } = 0.0f;
  10. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  11. public double w { get; set; } = 0.0f;
  12. }
  13. public class RotationD<T> {
  14. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  15. public T x { get; set; }
  16. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  17. public T y { get; set; }
  18. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  19. public T z { get; set; }
  20. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  21. public T w { get; set; }
  22. }
  23. }