|
Stepdance Software Library
|
Used for generating an output proportional to the 3D path length traveled by three inputs. More...
#include <generators.hpp>
Public Member Functions | |
| void | begin () |
| Initialize the PathLengthGenerator3D. Must be called to set up the generator. | |
| void | set_ratio (ControlParameter ratio) |
| Set the ratio between output distance and input path length. | |
| void | set_ratio (ControlParameter output_distance, ControlParameter input_distance) |
Public Attributes | |
| ControlParameter | ratio = 1.0 |
| ControlParameter scaling output relative to input path length (output/input). | |
| BlockPort | input_1 |
| First input BlockPort (e.g., X position). | |
| BlockPort | input_2 |
| Second input BlockPort (e.g., Y position). | |
| BlockPort | input_3 |
| Third input BlockPort (e.g., Z position). | |
| BlockPort | output |
| Output BlockPort proportional to 3D path length. | |
Protected Member Functions | |
| void | run () |
Used for generating an output proportional to the 3D path length traveled by three inputs.
PathLengthGenerator3D measures the incremental Euclidean distance traversed by three input signals and produces an output proportional to that path length by a configurable ratio. Here's an example of how to instantiate and configure a PathLengthGenerator3D:
| void PathLengthGenerator3D::set_ratio | ( | ControlParameter | ratio | ) |
Set the ratio between output distance and input path length.
| ratio | The proportionality constant (output / input). |