pub struct WSphere { /* private fields */ }
Expand description
This 3D Widget defines a sphere. :
Implementations
sourceimpl 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
sourceimpl Boxed for WSphere
impl Boxed for WSphere
sourceimpl WSphereTrait for WSphere
impl WSphereTrait for WSphere
fn as_raw_mut_WSphere(&mut self) -> *mut c_void
sourceimpl WSphereTraitConst for WSphere
impl WSphereTraitConst for WSphere
fn as_raw_WSphere(&self) -> *const c_void
sourceimpl Widget3DTrait for WSphere
impl Widget3DTrait for WSphere
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
sourcefn 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
sourceimpl Widget3DTraitConst for WSphere
impl Widget3DTraitConst for WSphere
sourceimpl WidgetTrait for WSphere
impl WidgetTrait for WSphere
sourceimpl WidgetTraitConst for WSphere
impl WidgetTraitConst for WSphere
fn as_raw_Widget(&self) -> *const c_void
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
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