pub struct EyeConfig {
pub left_eye_pos: [f32; 3],
pub right_eye_pos: [f32; 3],
pub forward_dir: [f32; 3],
pub up_dir: [f32; 3],
pub max_yaw: f32,
pub max_pitch: f32,
pub convergence_dist: f32,
}Expand description
Configuration for the two-eye gaze system.
Fields§
§left_eye_pos: [f32; 3]Left eye center in world space.
right_eye_pos: [f32; 3]Right eye center in world space.
forward_dir: [f32; 3]Default forward direction (normalized).
up_dir: [f32; 3]Up direction (normalized).
max_yaw: f32Maximum horizontal rotation in radians.
max_pitch: f32Maximum vertical rotation in radians.
convergence_dist: f32Distance at which eyes converge.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EyeConfig
impl RefUnwindSafe for EyeConfig
impl Send for EyeConfig
impl Sync for EyeConfig
impl Unpin for EyeConfig
impl UnsafeUnpin for EyeConfig
impl UnwindSafe for EyeConfig
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> 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