pub enum RayStatus {
Ok,
Missed {
surf: usize,
},
Tir {
surf: usize,
},
AimFailed {
stop: usize,
},
}Expand description
光線の追跡が止まったか・その理由
Variants§
Ok
最後の面まで届いた(けられたかは RayOut::vig)
Missed
面 surf に当たらなかった(交点がない・面の定義域の外・媒質の外・数値が有限でない)
Tir
面 surf で全反射した
AimFailed
光線のエイミング(瞳座標・絞りの点を通る光線の解き)に失敗した。stop は絞りの面
Implementations§
Trait Implementations§
impl Copy for RayStatus
impl Eq for RayStatus
impl StructuralPartialEq for RayStatus
Auto Trait Implementations§
impl Freeze for RayStatus
impl RefUnwindSafe for RayStatus
impl Send for RayStatus
impl Sync for RayStatus
impl Unpin for RayStatus
impl UnsafeUnpin for RayStatus
impl UnwindSafe for RayStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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