Vec3d

Type Alias Vec3d 

Source
pub type Vec3d = Vec3<f64>;

Aliased Type§

pub struct Vec3d {
    pub t: [f64; 3],
}

Fields§

§t: [f64; 3]

Implementations§

Source§

impl Vec3d

Source

pub fn is_almost_zero(&self) -> bool

Source

pub fn reflect(&self, n: &Vec3d) -> Vec3d

Source

pub fn refract(&self, n: &Vec3d, etai_over_etat: f64) -> Vec3d

Source§

impl Vec3d

Source

pub fn new_raw(x: f64, y: f64, z: f64) -> Self

Trait Implementations§

Source§

impl Hash for Vec3d

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Eq for Vec3d