pub struct SpatialPrefetchVolume { /* private fields */ }Expand description
Velocity-predicted spherical lookahead volume queried by the spatial asset prefetcher.
Implementations§
Source§impl SpatialPrefetchVolume
Predictive focus computation for SpatialPrefetchVolume.
impl SpatialPrefetchVolume
Predictive focus computation for SpatialPrefetchVolume.
Sourcepub fn predicted_center(&self) -> [f32; 3]
pub fn predicted_center(&self) -> [f32; 3]
Computes the predicted lookahead center center + velocity * lookahead_secs.
§Returns
[f32; 3]- Predicted future camera position in world coordinates.
Source§impl SpatialPrefetchVolume
Implements impl #impl_generics #name #ty_generics #where_clause.
impl SpatialPrefetchVolume
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_center(&self) -> [f32; 3]
pub fn get_mut_center(&mut self) -> &mut [f32; 3]
pub fn set_center(&mut self, val: [f32; 3]) -> &mut Self
pub fn get_velocity(&self) -> [f32; 3]
pub fn get_mut_velocity(&mut self) -> &mut [f32; 3]
pub fn set_velocity(&mut self, val: [f32; 3]) -> &mut Self
pub fn get_lookahead_secs(&self) -> f32
pub fn get_mut_lookahead_secs(&mut self) -> &mut f32
pub fn set_lookahead_secs(&mut self, val: f32) -> &mut Self
pub fn get_radius(&self) -> f32
pub fn get_mut_radius(&mut self) -> &mut f32
pub fn set_radius(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for SpatialPrefetchVolume
impl Clone for SpatialPrefetchVolume
impl Copy for SpatialPrefetchVolume
Source§impl Debug for SpatialPrefetchVolume
impl Debug for SpatialPrefetchVolume
Source§impl Default for SpatialPrefetchVolume
impl Default for SpatialPrefetchVolume
Source§impl PartialEq for SpatialPrefetchVolume
impl PartialEq for SpatialPrefetchVolume
impl StructuralPartialEq for SpatialPrefetchVolume
Auto Trait Implementations§
impl Forget for SpatialPrefetchVolume
impl Freeze for SpatialPrefetchVolume
impl Move for SpatialPrefetchVolume
impl RefUnwindSafe for SpatialPrefetchVolume
impl Send for SpatialPrefetchVolume
impl Sync for SpatialPrefetchVolume
impl Unpin for SpatialPrefetchVolume
impl UnsafeUnpin for SpatialPrefetchVolume
impl UnwindSafe for SpatialPrefetchVolume
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