ROTATE THE POINTS ABOUT A CENTER BY A CERTAIN ANGLE

Rotates the points of one or more curves about a specified center by a given angle, supporting rotation along the X, Y, or XY axis. Points whose X value falls below a configurable minimum are excluded from the operation. Use this worker to apply geometric rotations to curve data within a workflow.

When to use

Classification: process.

Tagged: angle, axis, center, curve_transform, geometry, rotate, rotation.

Inputs

Label ID Type Default Required Description
Curves To Rotate curvestorotate vector   Collection of curves whose points will be rotated; accepts multiple curve objects in d3VIEW vector format.
Min X x-value scalar 0   Minimum X threshold (default 0); any curve points with an X value strictly less than this scalar are excluded from rotation.
Angle angle scalar 0   Rotation angle in degrees (default 0); positive values follow the standard trigonometric direction for the chosen axis.
Axis axis scalar y   Axis of rotation: ‘x’ rotates about the X-axis, ‘y’ about the Y-axis, and ‘xy’ applies rotation in the XY plane (default ‘y’).
Center-X center_x scalar 0   X-coordinate of the center of rotation in curve-space units (default 0); leave at 0 to rotate about the Y-axis origin.
Center-y center_y scalar 0   Y-coordinate of the center of rotation in curve-space units (default 0); leave at 0 to rotate about the X-axis origin.
Begin Index begin_index scalar 0   Zero-based index into the input curve collection indicating which curve to start the rotation from (default 0); earlier curves are passed through unchanged.

Outputs

Label ID Type Description
curves_rotate_all_output_1 curves_rotate_all_output_1 vector Collection of rotated curves in d3VIEW vector format, with all qualifying points transformed according to the specified angle, axis, and center of rotation.

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=curves_rotate_all


Auto-generated from transformation schema. Worker id: curves_rotate_all. Schema hash: 966abea4e439. Hand-curated docs in workerexamples/ override this page when present.