pub struct EyeState {
pub yaw: f32,
pub pitch: f32,
pub blink_fraction: f32,
pub blink_timer: f32,
pub blink_duration: f32,
pub blinking: bool,
pub lcg_state: u64,
}Fields§
§yaw: f32Yaw angle in radians (horizontal rotation).
pitch: f32Pitch angle in radians (vertical rotation).
blink_fraction: f32Current blink closure fraction [0 = open, 1 = closed].
blink_timer: f32Timer counting up between blinks.
blink_duration: f32Duration of current blink.
blinking: boolWhether a blink is active.
lcg_state: u64LCG state for deterministic variation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EyeState
impl RefUnwindSafe for EyeState
impl Send for EyeState
impl Sync for EyeState
impl Unpin for EyeState
impl UnsafeUnpin for EyeState
impl UnwindSafe for EyeState
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