Edge.cs 463 B

123456789101112131415161718192021
  1. // Shatter Toolkit
  2. // Copyright 2015 Gustav Olsson
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace ShatterToolkit
  6. {
  7. public class Edge
  8. {
  9. public int index;
  10. public Point point0, point1;
  11. public Vector3 line;
  12. public Edge(Point point0, Point point1)
  13. {
  14. this.point0 = point0;
  15. this.point1 = point1;
  16. this.line = point1.position - point0.position;
  17. }
  18. }
  19. }