#[no_mangle]
pub unsafe extern "C" fn cavc_pline_eval_wn(
    pline: *const cavc_pline,
    x: f64,
    y: f64,
    winding_number: *mut i32
) -> i32
Expand description

Wraps PlineSource::winding_number.

winding_number is used as the out parameter to hold the computed winding number.

§Specific Error Codes

  • 1 = pline is null.

§Safety

pline must be null or a valid cavc_pline object that was created with cavc_pline_create and has not been freed. winding_number must point to a valid place in memory to be written.