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