Struct SphereOptions
pub struct SphereOptions {
pub transform: Transform,
pub radius: f64,
pub width_segments: i64,
pub height_segments: i64,
pub phi_start: f64,
pub phi_length: f64,
pub theta_start: f64,
pub theta_length: f64,
pub material: Option<String>,
pub identifier: Option<String>,
}Expand description
Options for adding a sphere object.
Fields§
§transform: TransformThe common transform parameters.
radius: f64The radius of the sphere.
width_segments: i64The number of width segments.
height_segments: i64The number of height segments.
phi_start: f64The phi start value.
phi_length: f64The phi length value.
theta_start: f64The theta start value.
theta_length: f64The theta length value.
material: Option<String>The identifier of the material to apply.
identifier: Option<String>The explicit identifier; assigned by the server when None.
Trait Implementations§
§impl Clone for SphereOptions
impl Clone for SphereOptions
§fn clone(&self) -> SphereOptions
fn clone(&self) -> SphereOptions
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 SphereOptions
impl Debug for SphereOptions
Auto Trait Implementations§
impl Freeze for SphereOptions
impl RefUnwindSafe for SphereOptions
impl Send for SphereOptions
impl Sync for SphereOptions
impl Unpin for SphereOptions
impl UnwindSafe for SphereOptions
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