Skip to main content

is_point_in_stroke

Function is_point_in_stroke 

Source
pub fn is_point_in_stroke(
    subpaths: &[SubPath],
    x: f32,
    y: f32,
    line_width: f32,
) -> bool
Expand description

指定した座標 (x, y) がストローク線(subpaths, line_width)の範囲内にあるかを判定する(W3C isPointInStroke 準拠)。