1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| 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; }
| }
|
| }
|
| }
|
|