Skip to main content

minkowski_diff_d

Function minkowski_diff_d 

Source
pub fn minkowski_diff_d(
    pattern: &PathD,
    path: &PathD,
    is_closed: bool,
    decimal_places: i32,
) -> PathsD
Expand description

Compute the Minkowski Difference of a pattern and path using floating-point coordinates.

Direct port from C++ MinkowskiDiff (PathD overload, clipper.minkowski.h lines 105-113).

Internally scales to integer coordinates, performs the operation, then scales back.

§Arguments

  • pattern - The pattern path in floating-point coordinates
  • path - The path from which to subtract
  • is_closed - Whether the path should be treated as closed
  • decimal_places - Number of decimal places of precision (default 2 in C++)

§Returns

The Minkowski difference as a set of paths in floating-point coordinates