Skip to main content

Triangle3

Trait Triangle3 

Source
pub trait Triangle3: Copy + Sealed {
    const STRIDE: usize;

    // Required method
    fn aabb(&self) -> Box3D;
}
Expand description

A 3D triangle record (f64 or f32 vertices). Implemented by Triangle3D and Triangle3DF32; sealed, so the set of record types is fixed.

Required Associated Constants§

Source

const STRIDE: usize

Byte stride of one record.

Required Methods§

Source

fn aabb(&self) -> Box3D

The triangle’s axis-aligned bounding box (always f64, for the index).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§