Skip to main content

HasBoundingBox

Trait HasBoundingBox 

Source
pub trait HasBoundingBox {
    type BoundingBox: GeometricPrimitive;

    // Required method
    fn bounding_box(&self) -> Self::BoundingBox;
}
Expand description

Provides access to a primitive’s bounding box.

Required Associated Types§

Source

type BoundingBox: GeometricPrimitive

Bounding box type associated with the primitive.

Required Methods§

Source

fn bounding_box(&self) -> Self::BoundingBox

Computes the bounding box.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§