pub struct FigureEight {
pub tube_radius: f32,
pub scale: f32,
}Expand description
Figure-eight knot — a tube surface around the figure-eight curve.
Fields§
§tube_radius: f32§scale: f32Implementations§
Trait Implementations§
Source§impl Clone for FigureEight
impl Clone for FigureEight
Source§fn clone(&self) -> FigureEight
fn clone(&self) -> FigureEight
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 FigureEight
impl Debug for FigureEight
Source§impl Default for FigureEight
impl Default for FigureEight
Source§impl Surface for FigureEight
impl Surface for FigureEight
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 FigureEight
impl RefUnwindSafe for FigureEight
impl Send for FigureEight
impl Sync for FigureEight
impl Unpin for FigureEight
impl UnsafeUnpin for FigureEight
impl UnwindSafe for FigureEight
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