/// <summary> /// Set the tool's end position. /// </summary> /// <param name="method"> /// <see cref="EndPointMethod"/> /// </param> /// <param name="x">tool's x position axis </param> /// <param name="y">tool's y position axis</param> /// <param name="z">tool's z position axis</param> public void SetEndPointMethod(EndPointMethod method, double x = 0, double y = 0, double z = 0) { SetParameter(Resources.EndPointMethod, Resources.ResourceManager.GetString(method.ToString())); if (method == EndPointMethod.Absolute) { SetParameter(Resources.EndPointPositionX, x); SetParameter(Resources.EndPointPositionY, y); SetParameter(Resources.EndPointPositionZ, z); } }
/// <summary> /// Set the tool's end position. /// </summary> /// <param name="method"> /// <see cref="EndPointMethod"/> /// </param> /// <param name="point">tool's point of x,y,z axis </param> public void SetEndPointMethod(EndPointMethod method, Point point) { SetEndPointMethod(method, point.X.Value, point.Y.Value, point.Z.Value); }