pub struct RailSegment3<'a> { /* private fields */ }Expand description
Immutable prepared segment. Borrowed routes cannot change during playback. See module recipe; construction allocates nothing, as do subsequent samples.
Implementations§
Source§impl<'a> RailSegment3<'a>
impl<'a> RailSegment3<'a>
Sourcepub fn new(
path: RailPath3<'a>,
start: RailKey3,
end: RailKey3,
seconds: f64,
) -> Result<RailSegment3<'a>, RailError>
pub fn new( path: RailPath3<'a>, start: RailKey3, end: RailKey3, seconds: f64, ) -> Result<RailSegment3<'a>, RailError>
Prepare shortest-arc orientation, distance and FOV once via Transition3.
Positive durations are finite 0 < seconds <= 3600 and require identical
projection descriptors. Full path endpoints must exactly equal key eyes.
Cuts require zero seconds, validate both keys and allow a different lens.
All route vertices/cubic controls must lie within the transition eye bound
(abs component <= 1e6); degenerate look poses are rejected, stationary
paths are allowed. See module recipe for a checked construction.
Trait Implementations§
Source§impl<'a> Clone for RailSegment3<'a>
impl<'a> Clone for RailSegment3<'a>
Source§fn clone(&self) -> RailSegment3<'a>
fn clone(&self) -> RailSegment3<'a>
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 moreimpl<'a> Copy for RailSegment3<'a>
Auto Trait Implementations§
impl<'a> Freeze for RailSegment3<'a>
impl<'a> RefUnwindSafe for RailSegment3<'a>
impl<'a> Send for RailSegment3<'a>
impl<'a> Sync for RailSegment3<'a>
impl<'a> Unpin for RailSegment3<'a>
impl<'a> UnwindSafe for RailSegment3<'a>
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