示例#1
0
文件: Point.cs 项目: ZoolWay/Geometry
 /// <summary>
 /// Gives the point at the position when going from this one in direction of a given vector and the given distance.
 /// </summary>
 /// <param name="v"></param>
 /// <param name="distance"></param>
 /// <returns></returns>
 public Point Go(Vector v, double distance)
 {
     Vector vDiff = v.Scale(distance);
     return Go(vDiff);
 }
示例#2
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="copyFrom"></param>
 public Vector(Vector copyFrom)
 {
     this.X = copyFrom.X;
     this.Y = copyFrom.Y;
 }
示例#3
0
文件: Point.cs 项目: ZoolWay/Geometry
 /// <summary>
 /// Gives the point at the position when going from this one in direction of a given vector.
 /// </summary>
 /// <param name="v"></param>
 /// <returns></returns>
 public Point Go(Vector v)
 {
     return new Point(this.X + v.X, this.Y + v.Y);
 }