ISegment.cs 871 B

123456789101112131415161718192021222324252627
  1. // -----------------------------------------------------------------------
  2. // <copyright file="ISegment.cs" company="">
  3. // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/
  4. // </copyright>
  5. // -----------------------------------------------------------------------
  6. namespace UnityEngine.U2D.Animation.TriangleNet
  7. .Geometry
  8. {
  9. /// <summary>
  10. /// Interface for segment geometry.
  11. /// </summary>
  12. internal interface ISegment : IEdge
  13. {
  14. /// <summary>
  15. /// Gets the vertex at given index.
  16. /// </summary>
  17. /// <param name="index">The local index (0 or 1).</param>
  18. Vertex GetVertex(int index);
  19. /// <summary>
  20. /// Gets an adjoining triangle.
  21. /// </summary>
  22. /// <param name="index">The triangle index (0 or 1).</param>
  23. ITriangle GetTriangle(int index);
  24. }
  25. }