Struct OrbitControlsHelper
pub struct OrbitControlsHelper {
pub base: String,
}Expand description
Write-access helper for the orbit controls of a camera.
The settings only take effect while the camera is the active camera, but are kept by the browser and applied once the camera becomes active.
Fields§
§base: StringThe base of the camera object.
Implementations§
§impl OrbitControlsHelper
impl OrbitControlsHelper
pub fn distance_min(&self, value: f64) -> Instruction
pub fn distance_min(&self, value: f64) -> Instruction
Writes the minimum orbit distance.
pub fn distance_max(&self, value: f64) -> Instruction
pub fn distance_max(&self, value: f64) -> Instruction
Writes the maximum orbit distance.
pub fn screen_space_panning(&self, value: bool) -> Instruction
pub fn screen_space_panning(&self, value: bool) -> Instruction
Writes whether screen space panning is enabled.
Trait Implementations§
§impl Clone for OrbitControlsHelper
impl Clone for OrbitControlsHelper
§fn clone(&self) -> OrbitControlsHelper
fn clone(&self) -> OrbitControlsHelper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OrbitControlsHelper
impl RefUnwindSafe for OrbitControlsHelper
impl Send for OrbitControlsHelper
impl Sync for OrbitControlsHelper
impl Unpin for OrbitControlsHelper
impl UnsafeUnpin for OrbitControlsHelper
impl UnwindSafe for OrbitControlsHelper
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