InterpolatorOfT.cs 799 B

12345678910111213141516171819202122
  1. // Copyright (c) Craftwork Games. All rights reserved.
  2. // Licensed under the MIT license.
  3. // See LICENSE file in the project root for full license information.
  4. namespace MonoGame.Extended.Particles.Modifiers.Interpolators;
  5. /// <summary>
  6. /// Represents a generic base class for particle interpolators that work with specific value types.
  7. /// </summary>
  8. /// <typeparam name="T">The type of value being interpolated. Must be a value type.</typeparam>
  9. public abstract class Interpolator<T> : Interpolator where T : struct
  10. {
  11. /// <summary>
  12. /// Gets or sets the starting value for the interpolation.
  13. /// </summary>
  14. public T StartValue { get; set; }
  15. /// <summary>
  16. /// Gets or sets the ending value for the interpolation.
  17. /// </summary>
  18. public T EndValue { get; set; }
  19. }