INVERT THE CURVE BY BY MULTIPLYING THE X BY -1 AND Y BY -1¶
Inverts a curve by multiplying the X and/or Y values by -1. Use this worker to mirror a curve about the origin, the Y-axis, or the X-axis depending on the selected inversion axis.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve 1 | curve1 | vector | — | Input curve (vector of X/Y pairs) to be inverted; the transformation is applied to the axis selected by inverttype. | |
| inverttype | inverttype | string | x | Axis to invert: ‘X’ multiplies all X values by -1, ‘Y’ multiplies all Y values by -1, and ‘XY’ multiplies both axes by -1; defaults to ‘X’. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curve_invert_output_1 | curve_invert_output_1 | vector | Resulting curve after the selected axis (X, Y, or both) has been negated; same format and length as the input curve. |
Disciplines¶
- data.curve.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curve_invert
Auto-generated from transformation schema. Worker id: curve_invert. Schema hash: 75c299d4ebd5. Hand-curated docs in workerexamples/ override this page when present.