using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace Hydro.Model { public class Vector { double _x, _y, _z; public Vector(Point pt) { _x = pt.X; _y = pt.Y; _z = pt.Z; } public Vector(double x, double y, double z) { _x = x; _y = y; _z = z; } public Point ToPoint() { return new Point( _x, _y, _z); } public double X { get { return _x; } set { _x = value; } } public double Y { get { return _y; } set { _y = value; } } public double Z { get { return _z; } set { _z = value; } } } }