pub struct LodChain { /* private fields */ }Implementations§
Source§impl LodChain
impl LodChain
Sourcepub fn new(
levels: Vec<ResidentMesh>,
thresholds: Vec<f32>,
hysteresis: f32,
) -> Result<LodChain, &'static str>
pub fn new( levels: Vec<ResidentMesh>, thresholds: Vec<f32>, hysteresis: f32, ) -> Result<LodChain, &'static str>
1..=16 authored levels and strictly increasing positive transition distances. Threshold distance is measured to the union of all level bounds.
pub fn bounds(&self) -> Bounds
pub fn select(&self, distance: f32, state: &mut LodState) -> &ResidentMesh
Auto Trait Implementations§
impl Freeze for LodChain
impl RefUnwindSafe for LodChain
impl !Send for LodChain
impl !Sync for LodChain
impl Unpin for LodChain
impl UnwindSafe for LodChain
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