pub trait HasNormal<const D: usize, Vec: Vector<Self::S, D>> {
type S: Scalar;
// Required methods
fn normal(&self) -> &Vec;
fn set_normal(&mut self, normal: Vec);
}Expand description
Indicates that the vertex payload has a normal vector.
Required Associated Types§
Required Methods§
Sourcefn set_normal(&mut self, normal: Vec)
fn set_normal(&mut self, normal: Vec)
Sets the normals.
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.