Struct spiropath::Options [−][src]
pub struct Options { pub location: Location, pub stationary_teeth: usize, pub rotating_teeth: usize, pub tolerance: f64, pub traced_point: Point, pub initial_rotating_angle: f64, pub mirror_rotating: bool, pub include_stationary: bool, pub initial_offsets: Vec<f64>, pub x_scale: Scale, pub y_scale: Scale, pub duration: f64, }
Expand description
Options for controlling a spiropath.
Fields
location: Location
Location of the rotating shape relative to the stationary shape.
stationary_teeth: usize
The number of teeth on the stationary shape.
rotating_teeth: usize
The number of teeth on the rotation shape.
tolerance: f64
The tolerance as a fraction of a tooth size.
traced_point: Point
The point to trace (in the original coordinates of the rotated shape).
initial_rotating_angle: f64
The angle of the rotating shape at the start of the stationary shape (in degrees).
mirror_rotating: bool
Whether to mirror the rotating shape.
include_stationary: bool
Whether to include the stationary shape in the output.
initial_offsets: Vec<f64>
The initial offsets of the rotating shape.
x_scale: Scale
How to scale the X axis of the output.
y_scale: Scale
How to scale the Y axis of the output.
duration: f64
Duration of animation, or 0 for nonw.