00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005 using System.ComponentModel;
00006
00007 namespace UtmConvert {
00008 public class Point {
00009 double _x = 0;
00010
00011
00012 [CategoryAttribute("UTM Point Settings")
00013 , DescriptionAttribute("X coordinate of the UTM point")]
00014 public double X {
00015 get { return _x; }
00016 set { _x = value; }
00017 }
00018
00019 double _y = 0;
00020
00021
00022 [CategoryAttribute("UTM Point Settings")
00023 , DescriptionAttribute("Y coordinate of the UTM point")]
00024 public double Y {
00025 get { return _y; }
00026 set { _y = value; }
00027 }
00028
00029
00030 public Point() { }
00031
00032
00033 public Point(double x, double y) {
00034 _x = x;
00035 _y = y;
00036 }
00037
00038
00039 public Point(int x, int y) {
00040 _x = (double)x;
00041 _y = (double)y;
00042 }
00043
00044
00045 public Point(float x, float y) {
00046 _x = (double)x;
00047 _y = (double)y;
00048 }
00049
00050
00051 public Point(string x, string y) {
00052 double.TryParse(x, out _x);
00053 double.TryParse(y, out _y);
00054 }
00055 }
00056 }