using System; namespace LitMotion { /// /// Options for integer type motion. /// public struct IntegerOptions : IMotionOptions, IEquatable { public RoundingMode RoundingMode; public readonly bool Equals(IntegerOptions other) { return other.RoundingMode == RoundingMode; } public override readonly bool Equals(object obj) { if (obj is IntegerOptions integerOptions) return Equals(integerOptions); return false; } public override readonly int GetHashCode() { return (int)RoundingMode; } } /// /// Specifies the rounding format for values after the decimal point. /// public enum RoundingMode : byte { ToEven, AwayFromZero, ToZero, ToPositiveInfinity, ToNegativeInfinity } }