pub struct WSphere { /* private fields */ }
Expand description
This 3D Widget defines a sphere. :
Implementations§
source§impl WSphere
impl WSphere
sourcepub fn new(
center: Point3d,
radius: f64,
sphere_resolution: i32,
color: &Color
) -> Result<WSphere>
pub fn new( center: Point3d, radius: f64, sphere_resolution: i32, color: &Color ) -> Result<WSphere>
Constructs a WSphere.
Parameters
- center: Center of the sphere.
- radius: Radius of the sphere.
- sphere_resolution: Resolution of the sphere.
- color: Color of the sphere.
C++ default parameters
- sphere_resolution: 10
- color: Color::white()
Trait Implementations§
source§impl Boxed for WSphere
impl Boxed for WSphere
source§impl WSphereTrait for WSphere
impl WSphereTrait for WSphere
fn as_raw_mut_WSphere(&mut self) -> *mut c_void
source§impl WSphereTraitConst for WSphere
impl WSphereTraitConst for WSphere
fn as_raw_WSphere(&self) -> *const c_void
source§impl Widget3DTrait for WSphere
impl Widget3DTrait for WSphere
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
source§fn update_pose(&mut self, pose: Affine3d) -> Result<()>
fn update_pose(&mut self, pose: Affine3d) -> Result<()>
Updates pose of the widget by pre-multiplying its current pose. Read more
source§impl Widget3DTraitConst for WSphere
impl Widget3DTraitConst for WSphere
source§impl WidgetTrait for WSphere
impl WidgetTrait for WSphere
source§impl WidgetTraitConst for WSphere
impl WidgetTraitConst for WSphere
impl Send for WSphere
Auto Trait Implementations§
impl RefUnwindSafe for WSphere
impl !Sync for WSphere
impl Unpin for WSphere
impl UnwindSafe for WSphere
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