Beispiel #1
0
 /// <summary>
 /// Substract a point from this one.
 /// </summary>
 /// <param name="point">Point to substract.</param>
 public void Substract(BasePoint point)
 {
     this.x      -= point.X;
     this.y      -= point.Y;
     this.z      -= point.Z;
     this.IsUnset = false;
 }
Beispiel #2
0
 /// <summary>
 /// Add a point to this point.
 /// </summary>
 /// <param name="point">Point to add.</param>
 public void Add(BasePoint point)
 {
     this.x += point.X;
     this.y += point.Y;
     this.z += point.Z;
     IsUnset = false;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BasePoint"/> class.
 /// </summary>
 /// <param name="point">Point to copy coordinates from.</param>
 /// <returns></returns>
 protected BasePoint(BasePoint point)
     : this(point.X, point.Y, point.Z)
 {
 }