pub enum FresnelBend<'a> {
Radial {
c: f64,
k: f64,
a: &'a [f64],
},
Cyl(Option<&'a CylFresnel>),
}Expand description
Fresnel の面の屈折を決める面(交点は形 crate::shape::Shape で求め、屈折はこの面の傾きで)
Variants§
Radial
Fresnel(FRESNELS): 偶数次非球面(c・k・r², r⁴, … の係数 a)
Cyl(Option<&'a CylFresnel>)
Cylinder Fresnel(CFRESNEL): y だけの面(無ければ曲げない)
Implementations§
Trait Implementations§
Source§impl<'a> Clone for FresnelBend<'a>
impl<'a> Clone for FresnelBend<'a>
impl<'a> Copy for FresnelBend<'a>
Source§impl<'a> Debug for FresnelBend<'a>
impl<'a> Debug for FresnelBend<'a>
Source§impl<'a> PartialEq for FresnelBend<'a>
impl<'a> PartialEq for FresnelBend<'a>
impl<'a> StructuralPartialEq for FresnelBend<'a>
Auto Trait Implementations§
impl<'a> Freeze for FresnelBend<'a>
impl<'a> RefUnwindSafe for FresnelBend<'a>
impl<'a> Send for FresnelBend<'a>
impl<'a> Sync for FresnelBend<'a>
impl<'a> Unpin for FresnelBend<'a>
impl<'a> UnsafeUnpin for FresnelBend<'a>
impl<'a> UnwindSafe for FresnelBend<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more