PageRenderTime 37ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/WorldView/Structures/PointSingle.cs

#
C# | 46 lines | 40 code | 5 blank | 1 comment | 0 complexity | e609bb3e2078a34a64851b04d0fd4eb5 MD5 | raw file
  1. using System;
  2. namespace MoreTerra.Structures
  3. {
  4. // A basic Point structure dealing with Single precision numbers.
  5. public struct PointSingle
  6. {
  7. private Single _x;
  8. private Single _y;
  9. #region Constructors
  10. public PointSingle(Single x, Single y)
  11. {
  12. _x = x;
  13. _y = y;
  14. }
  15. #endregion
  16. #region GetSet Functions
  17. public Single X
  18. {
  19. get
  20. {
  21. return _x;
  22. }
  23. set
  24. {
  25. _x = value;
  26. }
  27. }
  28. public Single Y
  29. {
  30. get
  31. {
  32. return _y;
  33. }
  34. set
  35. {
  36. _y = value;
  37. }
  38. }
  39. #endregion
  40. }
  41. }