Trait Range

Source
pub trait Range {
    // Required methods
    fn points(&self) -> impl Iterator<Item = (f32, f32, f32)>;
    fn aabb(&self) -> Aabb<f32, 3>;
}
Expand description

Trait for range.

Required Methods§

Source

fn points(&self) -> impl Iterator<Item = (f32, f32, f32)>

Gets points in the range.

Source

fn aabb(&self) -> Aabb<f32, 3>

Gets axis-aligned bounding box of the range.

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.

Implementations on Foreign Types§

Source§

impl Range for Vec<Vector3>

Source§

fn points(&self) -> impl Iterator<Item = (f32, f32, f32)>

Source§

fn aabb(&self) -> Aabb<f32, 3>

Source§

impl Range for Point3

Source§

fn points(&self) -> impl Iterator<Item = (f32, f32, f32)>

Source§

fn aabb(&self) -> Aabb<f32, 3>

Implementors§