CurveTangent.cs 997 B

12345678910111213141516171819202122232425
  1. // MonoGame - Copyright (C) The MonoGame Team
  2. // This file is subject to the terms and conditions defined in
  3. // file 'LICENSE.txt', which is part of this source code package.
  4. namespace CommonLang.Geometry
  5. {
  6. /// <summary>
  7. /// Defines the different tangent types to be calculated for <see cref="CurveKey"/> points in a <see cref="Curve"/>.
  8. /// </summary>
  9. public enum CurveTangent
  10. {
  11. /// <summary>
  12. /// The tangent which always has a value equal to zero.
  13. /// </summary>
  14. Flat,
  15. /// <summary>
  16. /// The tangent which contains a difference between current tangent value and the tangent value from the previous <see cref="CurveKey"/>.
  17. /// </summary>
  18. Linear,
  19. /// <summary>
  20. /// The smoouth tangent which contains the inflection between <see cref="CurveKey.TangentIn"/> and <see cref="CurveKey.TangentOut"/> by taking into account the values of both neighbors of the <see cref="CurveKey"/>.
  21. /// </summary>
  22. Smooth
  23. }
  24. }