Palm.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using MathNet.Numerics.LinearAlgebra.Single;
  7. namespace bbiwarg.Detectors
  8. {
  9. class Palm
  10. {
  11. private Vector upperLeft, upperRight, lowerRight, lowerLeft;
  12. public Palm(Vector upperLeft, Vector upperRight, Vector lowerRight, Vector lowerLeft)
  13. {
  14. this.upperLeft = upperLeft;
  15. this.upperRight = upperRight;
  16. this.lowerRight = lowerRight;
  17. this.lowerLeft = lowerLeft;
  18. }
  19. public Vector getUpperLeft()
  20. {
  21. return upperLeft;
  22. }
  23. public Vector getUpperRight()
  24. {
  25. return upperRight;
  26. }
  27. public Vector getLowerRight()
  28. {
  29. return lowerRight;
  30. }
  31. public Vector getLowerLeft()
  32. {
  33. return lowerLeft;
  34. }
  35. public Vector[] getCorners()
  36. {
  37. return new Vector[4] { upperLeft, upperRight, lowerRight, lowerLeft };
  38. }
  39. }
  40. }