pub struct Orbit {
pub src: CameraFrame,
pub target: DVec3,
pub distance: f64,
pub phi: f64,
pub theta0: f64,
pub total_angle: f64,
}Expand description
An orbit animation rotating the camera around a target.
Fields§
§src: CameraFrameThe camera state at the start of the orbit.
target: DVec3The orbit target.
distance: f64Distance from the target.
phi: f64Elevation angle kept constant during the orbit.
theta0: f64Initial azimuth angle.
total_angle: f64Total angle to rotate, in radians.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<E> EvalExt for Ewhere
E: Eval,
impl<E> EvalExt for Ewhere
E: Eval,
Source§fn apply_alpha_to(self, item: &mut Self::Output, alpha: f64) -> Self
fn apply_alpha_to(self, item: &mut Self::Output, alpha: f64) -> Self
Write the state at progress
alpha into item and return this
evaluator (defined through eval_alpha).Source§fn apply_to(self, item: &mut Self::Output) -> Self
fn apply_to(self, item: &mut Self::Output) -> Self
Write the end state (
alpha == 1.0) into item and return this
evaluator (defined through EvalExt::apply_alpha_to).§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<E> IntoAnimNode for E
impl<E> IntoAnimNode for E
Source§fn into_anim_node(self) -> AnimNode
fn into_anim_node(self) -> AnimNode
Lower this definition into its local runtime representation.
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§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<A> PlaybackExt for Awhere
A: Unplaced,
impl<A> PlaybackExt for Awhere
A: Unplaced,
Source§fn with_rate_func(self, rate_func: fn(f64) -> f64) -> Paramed<Self>
fn with_rate_func(self, rate_func: fn(f64) -> f64) -> Paramed<Self>
Change the animation’s rate function.
Source§fn with_duration(self, duration_secs: f64) -> Paramed<Self>
fn with_duration(self, duration_secs: f64) -> Paramed<Self>
Change the animation’s duration.
Source§fn with_enabled(self, enabled: bool) -> Paramed<Self>
fn with_enabled(self, enabled: bool) -> Paramed<Self>
Enable or disable this animation’s output.
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> TransformedExt for T
impl<T> TransformedExt for T
Source§fn transformed<G>(self, transform: G) -> Transformed<Self, G>
fn transformed<G>(self, transform: G) -> Transformed<Self, G>
Return
self wrapped with transform stored exactly as G.