Function cavalier_contours_ffi::cavc_pline_eval_area[][src]

#[no_mangle]
#[must_use]pub unsafe extern "C" fn cavc_pline_eval_area(
    pline: *const cavc_pline,
    area: *mut f64
) -> i32

Compute the signed area of a polyline.

If pline is an open polyline then the computed area is always 0. If pline direction is counter clockwise then result is positive otherwise it is negative. area is used as the out parameter to hold the computed area.

Specific Error Codes

  • 1 = pline is null.