Newer
Older
GHFX_REFACTOR / Location.cs
wxn on 2 Nov 2016 1 KB 提交
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cyberpipe
{
    public class Location
    {
        private string name;
        private double x;
        private double y;
        private double z;

        public Location(string name, string x, string y, string z)
        {
            this.name = name;
            if (!String.IsNullOrEmpty(x))
            {
                this.x = Convert.ToDouble(x);
            }
            if (!String.IsNullOrEmpty(y))
            {
                this.y = Convert.ToDouble(y);
            }
            if (!String.IsNullOrEmpty(z))
            {
                this.z = Convert.ToDouble(z);
            }
        }

        public string NAME
        {
            get { return name; }
        }

        public double X
        {
            get { return x; }
        }

        public double Y
        {
            get { return y; }
        }

        public double Z
        {
            get { return z; }
        }
    }
}