Skip to main content

calculate_control_point

Function calculate_control_point 

Source
pub fn calculate_control_point(
    source_pos: Vec2,
    target_pos: Vec2,
    direction: Vec2,
    curvature: f32,
    offset: f32,
) -> Vec2
Expand description

Calculates the control point for a curve based on the source and target points, edge position, curvature, and offset.