PageRenderTime 62ms CodeModel.GetById 30ms app.highlight 2ms RepoModel.GetById 19ms app.codeStats 0ms

/WorldView/Structures/PointInt16.cs

#
C# | 45 lines | 40 code | 4 blank | 1 comment | 0 complexity | 3ea176194cd90b1061833f3c2944f9cc MD5 | raw file
 1using System;
 2
 3namespace MoreTerra.Structures
 4{
 5	// A very basic Point class for handling 16-bit Integers.
 6	public struct PointInt16
 7	{
 8		private Int16 _x;
 9		private Int16 _y;
10
11		#region Constructors
12		public PointInt16(Int16 x, Int16 y)
13		{
14			_x = x;
15			_y = y;
16		}
17		#endregion
18		
19		#region GetSet Functions
20		public Int16 X
21		{
22			get
23			{
24				return _x;
25			}
26			set
27			{
28				_x = value;
29			}
30		}
31
32		public Int16 Y
33		{
34			get
35			{
36				return _y;
37			}
38			set
39			{
40				_y = value;
41			}
42		}
43		#endregion
44	}
45}