PageRenderTime 74ms CodeModel.GetById 51ms app.highlight 6ms RepoModel.GetById 13ms app.codeStats 0ms

/WorldView/Structures/PointSingle.cs

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