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