Struct OrbitControls
pub struct OrbitControls {
pub distance_min: Option<f64>,
pub distance_max: Option<f64>,
pub screen_space_panning: Option<bool>,
pub target: Option<[f64; 3]>,
}Expand description
Orbit control settings for a camera object.
One of the camera control types. Additional three.js control types can be
added later; each carries its own type discriminator on the wire.
Fields§
§distance_min: Option<f64>The minimum orbit distance.
distance_max: Option<f64>The maximum orbit distance.
screen_space_panning: Option<bool>Whether screen space panning is enabled.
target: Option<[f64; 3]>The orbit target as [x, y, z].
Trait Implementations§
§impl Clone for OrbitControls
impl Clone for OrbitControls
§fn clone(&self) -> OrbitControls
fn clone(&self) -> OrbitControls
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 more§impl Debug for OrbitControls
impl Debug for OrbitControls
§impl Default for OrbitControls
impl Default for OrbitControls
§fn default() -> OrbitControls
fn default() -> OrbitControls
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OrbitControls
impl RefUnwindSafe for OrbitControls
impl Send for OrbitControls
impl Sync for OrbitControls
impl Unpin for OrbitControls
impl UnwindSafe for OrbitControls
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