pub struct RayAnimationConfig {
pub duration_ms: u32,
pub fps: u32,
pub ray_colors: Vec<String>,
pub camera_position: [f32; 3],
pub camera_target: [f32; 3],
pub background_color: String,
pub ray_width: f32,
pub hit_dot_size: f32,
pub show_hits_as_dots: bool,
pub max_rays: Option<usize>,
pub failed_ray_distance: f32,
}Expand description
Configuration for ray animation generation
Fields§
§duration_ms: u32Duration of the animation in milliseconds
fps: u32Frame rate for the animation
ray_colors: Vec<String>Color scheme for rays (hex colors)
camera_position: [f32; 3]Camera position for the 3D view
camera_target: [f32; 3]Camera target (look-at point)
background_color: StringBackground color (hex)
ray_width: f32Ray line width
hit_dot_size: f32Size of hit point dots
show_hits_as_dots: boolShow successful hits as dots instead of lines
max_rays: Option<usize>Maximum number of rays to animate (for performance)
failed_ray_distance: f32Distance to show failed rays (instead of infinite extension)
Trait Implementations§
Source§impl Clone for RayAnimationConfig
impl Clone for RayAnimationConfig
Source§fn clone(&self) -> RayAnimationConfig
fn clone(&self) -> RayAnimationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RayAnimationConfig
impl Debug for RayAnimationConfig
Auto Trait Implementations§
impl Freeze for RayAnimationConfig
impl RefUnwindSafe for RayAnimationConfig
impl Send for RayAnimationConfig
impl Sync for RayAnimationConfig
impl Unpin for RayAnimationConfig
impl UnwindSafe for RayAnimationConfig
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