pub struct InstanceChunkWindow {
pub placement: ChunkPlacementId,
pub start: ResidencyTicket,
pub end: ResidencyTicket,
pub interpolation: f32,
}Expand description
Bounded two-frame window for one declared rigid-instance occurrence.
Fields§
§placement: ChunkPlacementIdStable placement whose transform stream is animated.
start: ResidencyTicketExact resident rigid-transform generation at interpolation zero.
end: ResidencyTicketExact resident rigid-transform generation at interpolation one.
interpolation: f32Closed-interval interpolation factor.
Implementations§
Source§impl InstanceChunkWindow
impl InstanceChunkWindow
Sourcepub fn new(
placement: ChunkPlacementId,
start: ResidencyTicket,
end: ResidencyTicket,
interpolation: f32,
) -> Result<Self, ChunkPlacementError>
pub fn new( placement: ChunkPlacementId, start: ResidencyTicket, end: ResidencyTicket, interpolation: f32, ) -> Result<Self, ChunkPlacementError>
Creates a topology-stable paged rigid-transform window.
§Errors
Rejects interpolation outside the closed unit interval.
Trait Implementations§
Source§impl Clone for InstanceChunkWindow
impl Clone for InstanceChunkWindow
impl Copy for InstanceChunkWindow
Source§impl Debug for InstanceChunkWindow
impl Debug for InstanceChunkWindow
Source§impl PartialEq for InstanceChunkWindow
impl PartialEq for InstanceChunkWindow
impl StructuralPartialEq for InstanceChunkWindow
Auto Trait Implementations§
impl Freeze for InstanceChunkWindow
impl RefUnwindSafe for InstanceChunkWindow
impl Send for InstanceChunkWindow
impl Sync for InstanceChunkWindow
impl Unpin for InstanceChunkWindow
impl UnsafeUnpin for InstanceChunkWindow
impl UnwindSafe for InstanceChunkWindow
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