Struct octoon::geometries::cylinder::CylinderGeometry
source · pub struct CylinderGeometry { /* private fields */ }
Implementations
sourceimpl CylinderGeometry
impl CylinderGeometry
pub fn new(
radius_top: f32,
radius_bottom: f32,
height: f32,
segments: u32,
theta_start: f32,
theta_length: f32
) -> Self
pub fn new_1(
radius_top: f32,
radius_bottom: f32,
height: f32,
segments: u32
) -> Self
pub fn top_radius(&self) -> f32
pub fn top_diameter(&self) -> f32
pub fn bottom_radius(&self) -> f32
pub fn bottom_diameter(&self) -> f32
pub fn height(&self) -> f32
pub fn height_in_cone(&self) -> f32
pub fn top_radius_in_fan(&self) -> f32
pub fn top_length_in_fan(&self) -> f32
pub fn bottom_radius_in_fan(&self) -> f32
pub fn bottom_length_in_fan(&self) -> f32
pub fn segments(&self) -> u32
pub fn theta_start(&self) -> f32
pub fn theta_length(&self) -> f32
Trait Implementations
sourceimpl Debug for CylinderGeometry
impl Debug for CylinderGeometry
sourceimpl From<CylinderGeometry> for Arc<RefCell<dyn Geometry + 'static>>
impl From<CylinderGeometry> for Arc<RefCell<dyn Geometry + 'static>>
sourcefn from(shape: CylinderGeometry) -> Self
fn from(shape: CylinderGeometry) -> Self
Converts to this type from the input type.
sourceimpl From<CylinderGeometry> for Arc<dyn Geometry + 'static>
impl From<CylinderGeometry> for Arc<dyn Geometry + 'static>
sourcefn from(shape: CylinderGeometry) -> Self
fn from(shape: CylinderGeometry) -> Self
Converts to this type from the input type.
sourceimpl From<CylinderGeometry> for Rc<RefCell<dyn Geometry + 'static>>
impl From<CylinderGeometry> for Rc<RefCell<dyn Geometry + 'static>>
sourcefn from(shape: CylinderGeometry) -> Self
fn from(shape: CylinderGeometry) -> Self
Converts to this type from the input type.
sourceimpl From<CylinderGeometry> for Rc<dyn Geometry + 'static>
impl From<CylinderGeometry> for Rc<dyn Geometry + 'static>
sourcefn from(shape: CylinderGeometry) -> Self
fn from(shape: CylinderGeometry) -> Self
Converts to this type from the input type.
sourceimpl Geometry for CylinderGeometry
impl Geometry for CylinderGeometry
Auto Trait Implementations
impl RefUnwindSafe for CylinderGeometry
impl Send for CylinderGeometry
impl Sync for CylinderGeometry
impl Unpin for CylinderGeometry
impl UnwindSafe for CylinderGeometry
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
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.