Projection2DTo2D.cs 888 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace bbiwarg.Utility
  7. {
  8. class Projection2DTo2D
  9. {
  10. private int sourceWidth;
  11. private int sourceHeight;
  12. private int destinationWidth;
  13. private int destinationHeight;
  14. private Dictionary<Vector2D, Vector2D> calibrationPoints;
  15. public bool IsCalibrated { get; private set; }
  16. public Projection2DTo2D(int sourceWidth, int sourceHeight, int destinationWidth, int destinationHeight) {
  17. this.sourceWidth = sourceWidth;
  18. this.sourceHeight = sourceHeight;
  19. this.destinationWidth = destinationWidth;
  20. this.destinationHeight = destinationHeight;
  21. IsCalibrated = false;
  22. calibrationPoints = new Dictionary<Vector2D, Vector2D>();
  23. }
  24. }
  25. }