pub trait Crop<const N: usize>where
Self: Sized,{
// Required methods
fn transpose_axes(self) -> Self;
fn crop_x(self, x: f64, keep_smaller: bool) -> ArrayVec<Self, N>;
// Provided methods
fn crop(self, x_min: f64, y_min: f64, x_max: f64, y_max: f64) -> Vec<Self> { ... }
fn crop_y(self, y: f64, keep_smaller: bool) -> ArrayVec<Self, N> { ... }
}
Expand description
Implement cropability for a geometric type.
Required Methods§
sourcefn transpose_axes(self) -> Self
fn transpose_axes(self) -> Self
Transpose the geometry axes. This is used to provide a default implementation of crop_y
using crop_x
.
Provided Methods§
Object Safety§
This trait is not object safe.