pub struct Orbit(/* private fields */);Expand description
Exact circular orbits and tangent velocity, parameterized in radians/second.
Implementations§
Trait Implementations§
Source§impl TrajectoryModel for Orbit
impl TrajectoryModel for Orbit
Source§fn analytic_bounds(&self, age: f32) -> Result<Option<Rect>, ValidationError>
fn analytic_bounds(&self, age: f32) -> Result<Option<Rect>, ValidationError>
Conservative extent of every particle center at this age, for models whose
Self::analytic_upload lets the GPU evaluate positions. Returning None keeps
the ordinary evaluated path.Source§fn birth_time(&self, _: u64) -> Time
fn birth_time(&self, _: u64) -> Time
Exact integer-tick birth time of one stable ID.
Source§fn state(
&self,
index: u64,
age: f32,
) -> Result<Option<Particle>, ValidationError>
fn state( &self, index: u64, age: f32, ) -> Result<Option<Particle>, ValidationError>
Complete state at this age; None means absent/dead.
Source§fn duration(&self) -> Option<Duration>
fn duration(&self) -> Option<Duration>
Optional finite natural duration for timeline registration.
Source§fn analytic_upload(
&self,
_age_seconds: f32,
_primitive: InstanceKind,
_align_to_velocity: bool,
) -> Result<Option<AnalyticInstanceUpload>, ValidationError>
fn analytic_upload( &self, _age_seconds: f32, _primitive: InstanceKind, _align_to_velocity: bool, ) -> Result<Option<AnalyticInstanceUpload>, ValidationError>
Optional seeded initial-state upload for supported random-access models.
Custom models and unsupported precision retain the ordinary evaluated path.
Auto Trait Implementations§
impl Forget for Orbit
impl Freeze for Orbit
impl Move for Orbit
impl RefUnwindSafe for Orbit
impl Send for Orbit
impl Sync for Orbit
impl Unpin for Orbit
impl UnsafeUnpin for Orbit
impl UnwindSafe for Orbit
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