/WorldView/Structures/PointInt16.cs
C# | 45 lines | 40 code | 4 blank | 1 comment | 0 complexity | 3ea176194cd90b1061833f3c2944f9cc MD5 | raw file
- using System;
-
- namespace MoreTerra.Structures
- {
- // A very basic Point class for handling 16-bit Integers.
- public struct PointInt16
- {
- private Int16 _x;
- private Int16 _y;
-
- #region Constructors
- public PointInt16(Int16 x, Int16 y)
- {
- _x = x;
- _y = y;
- }
- #endregion
-
- #region GetSet Functions
- public Int16 X
- {
- get
- {
- return _x;
- }
- set
- {
- _x = value;
- }
- }
-
- public Int16 Y
- {
- get
- {
- return _y;
- }
- set
- {
- _y = value;
- }
- }
- #endregion
- }
- }