pub trait Piece: Sized {
type At: Clone;
// Required methods
fn hull(&self) -> GeopResult<Vec<Vector3>>;
fn point(&self) -> GeopResult<Option<(Self::At, Vector3)>>;
fn split(&self, handoff: Scalar) -> GeopResult<Option<Vec<Self>>>;
}Expand description
Part of a set a distance is measured to (see the module docs).
Required Associated Types§
Required Methods§
Sourcefn hull(&self) -> GeopResult<Vec<Vector3>>
fn hull(&self) -> GeopResult<Vec<Vector3>>
Points whose convex hull holds every point of the piece.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".