pub struct Builder { /* private fields */ }
Expand description
Helper struct to construct Orbit
with desired settings.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn position<P>(&mut self, position: P) -> &mut Selfwhere
P: Into<Point3<f32>>,
pub fn position<P>(&mut self, position: P) -> &mut Selfwhere
P: Into<Point3<f32>>,
Set the initial position.
Defaults to the world origin.
sourcepub fn up<P>(&mut self, up: P) -> &mut Selfwhere
P: Into<Vector3<f32>>,
pub fn up<P>(&mut self, up: P) -> &mut Selfwhere
P: Into<Vector3<f32>>,
Sets the initial up direction.
Defaults to the unit z axis.
sourcepub fn target<P>(&mut self, target: P) -> &mut Selfwhere
P: Into<Point3<f32>>,
pub fn target<P>(&mut self, target: P) -> &mut Selfwhere
P: Into<Point3<f32>>,
Set the target position.
Defaults to the world origin.
sourcepub fn speed(&mut self, speed: f32) -> &mut Self
pub fn speed(&mut self, speed: f32) -> &mut Self
Setup the speed of the movements. Default value is 1.0
Setup control button. Default is left mouse button (MOUSE_LEFT
).
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Builder
impl !Send for Builder
impl !Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.