pub trait Bounded2d {
// Required methods
fn aabb_2d(&self, isometry: impl Into<Isometry2d>) -> Aabb2d;
fn bounding_circle(&self, isometry: impl Into<Isometry2d>) -> BoundingCircle;
}
Expand description
A trait with methods that return 2D bounding volumes for a shape.
Required Methods§
Sourcefn aabb_2d(&self, isometry: impl Into<Isometry2d>) -> Aabb2d
fn aabb_2d(&self, isometry: impl Into<Isometry2d>) -> Aabb2d
Get an axis-aligned bounding box for the shape translated and rotated by the given isometry.
Sourcefn bounding_circle(&self, isometry: impl Into<Isometry2d>) -> BoundingCircle
fn bounding_circle(&self, isometry: impl Into<Isometry2d>) -> BoundingCircle
Get a bounding circle for the shape translated and rotated by the given isometry.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl Bounded2d for Annulus
impl Bounded2d for Arc2d
impl Bounded2d for BoxedPolygon
Available on crate feature
alloc
only.impl Bounded2d for BoxedPolyline2d
Available on crate feature
alloc
only.