Skip to main content

RayReal

Trait RayReal 

Source
pub trait RayReal: Real {
    const EDGE_SLACK: Self;
    const FLAT: Self;
}
Expand description

A coordinate ray_triangle works in, with its tolerances.

Required Associated Constants§

Source

const EDGE_SLACK: Self

How far past a triangle’s edges, in its barycentric coordinates, a crossing still counts: a few rounding errors of this precision.

Source

const FLAT: Self

The determinant below which a ray is taken as parallel to the triangle, or the triangle as having no area.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl RayReal for f32

Source§

const EDGE_SLACK: Self = 1e-5

Source§

const FLAT: Self = 1e-12

Source§

impl RayReal for f64

Source§

const EDGE_SLACK: Self = 1e-9

Source§

const FLAT: Self = 1e-12

Implementors§