pub struct MobiusStrip {
pub radius: f32,
pub width: f32,
}Expand description
A Mobius strip — a surface with only one side.
Fields§
§radius: f32§width: f32Implementations§
Trait Implementations§
Source§impl Clone for MobiusStrip
impl Clone for MobiusStrip
Source§fn clone(&self) -> MobiusStrip
fn clone(&self) -> MobiusStrip
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MobiusStrip
impl Debug for MobiusStrip
Source§impl Default for MobiusStrip
impl Default for MobiusStrip
Source§impl Surface for MobiusStrip
impl Surface for MobiusStrip
Source§fn normal(&self, u: f32, v: f32) -> Vec3
fn normal(&self, u: f32, v: f32) -> Vec3
Compute the surface normal at parameter (u, v).
Default implementation uses central differences.
Source§fn tangent_u(&self, u: f32, v: f32) -> Vec3
fn tangent_u(&self, u: f32, v: f32) -> Vec3
Compute the partial derivative with respect to u at (u, v).
Auto Trait Implementations§
impl Freeze for MobiusStrip
impl RefUnwindSafe for MobiusStrip
impl Send for MobiusStrip
impl Sync for MobiusStrip
impl Unpin for MobiusStrip
impl UnsafeUnpin for MobiusStrip
impl UnwindSafe for MobiusStrip
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more