Struct octoon::geometries::cube::CubeGeometry
source · pub struct CubeGeometry { /* private fields */ }
Implementations
sourceimpl CubeGeometry
impl CubeGeometry
pub fn new(
width: f32,
height: f32,
depth: f32,
width_segments: u32,
height_segments: u32,
depth_segments: u32
) -> Self
pub fn width(&self) -> f32
pub fn height(&self) -> f32
pub fn depth(&self) -> f32
pub fn width_segments(&self) -> u32
pub fn height_segments(&self) -> u32
pub fn depth_segments(&self) -> u32
Trait Implementations
sourceimpl Debug for CubeGeometry
impl Debug for CubeGeometry
sourceimpl From<CubeGeometry> for Arc<RefCell<dyn Geometry + 'static>>
impl From<CubeGeometry> for Arc<RefCell<dyn Geometry + 'static>>
sourcefn from(geoemtry: CubeGeometry) -> Self
fn from(geoemtry: CubeGeometry) -> Self
Converts to this type from the input type.
sourceimpl From<CubeGeometry> for Arc<dyn Geometry + 'static>
impl From<CubeGeometry> for Arc<dyn Geometry + 'static>
sourcefn from(geoemtry: CubeGeometry) -> Self
fn from(geoemtry: CubeGeometry) -> Self
Converts to this type from the input type.
sourceimpl From<CubeGeometry> for Rc<RefCell<dyn Geometry + 'static>>
impl From<CubeGeometry> for Rc<RefCell<dyn Geometry + 'static>>
sourcefn from(geoemtry: CubeGeometry) -> Self
fn from(geoemtry: CubeGeometry) -> Self
Converts to this type from the input type.
sourceimpl From<CubeGeometry> for Rc<dyn Geometry + 'static>
impl From<CubeGeometry> for Rc<dyn Geometry + 'static>
sourcefn from(geoemtry: CubeGeometry) -> Self
fn from(geoemtry: CubeGeometry) -> Self
Converts to this type from the input type.
sourceimpl Geometry for CubeGeometry
impl Geometry for CubeGeometry
Auto Trait Implementations
impl RefUnwindSafe for CubeGeometry
impl Send for CubeGeometry
impl Sync for CubeGeometry
impl Unpin for CubeGeometry
impl UnwindSafe for CubeGeometry
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
.