pub struct Helicoid {
pub pitch: f32,
pub radius: f32,
pub height_range: f32,
}Expand description
A helicoid — a minimal surface swept by a line rotating about and translating along an axis.
Fields§
§pitch: f32§radius: f32§height_range: f32Implementations§
Trait Implementations§
Source§impl Surface for Helicoid
impl Surface for Helicoid
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 Helicoid
impl RefUnwindSafe for Helicoid
impl Send for Helicoid
impl Sync for Helicoid
impl Unpin for Helicoid
impl UnsafeUnpin for Helicoid
impl UnwindSafe for Helicoid
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