public void Set(double new_x, double new_y, double new_z) { this.x = new_x; this.y = new_y; this.z = new_z; }
public void negative_dimension_throws() { var v = new Vector3D(); Assert.Throws <ArgumentOutOfRangeException>(() => v.Set(-1, 0)); Assert.Throws <ArgumentOutOfRangeException>(() => v.Set(int.MinValue, 0)); }