Trait Bounded

Source
pub trait Bounded: Object + Shape<f64> {
    // Required methods
    fn bound(&self) -> &Bound;
    fn bound_mut(&mut self) -> &mut Bound;

    // Provided method
    fn hit_test(
        &self,
        line_segment: Segment3<f64>,
    ) -> Option<(f64, Point3<f64>)> { ... }
}
Expand description

A bounded object

Required Methods§

Source

fn bound(&self) -> &Bound

Source

fn bound_mut(&mut self) -> &mut Bound

Provided Methods§

Source

fn hit_test(&self, line_segment: Segment3<f64>) -> Option<(f64, Point3<f64>)>

NOTE: tangent ‘intersections’ are ignored

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§