pub struct CrossCap {
pub scale: f32,
}Expand description
Cross-cap — another immersion of the real projective plane in R^3.
Fields§
§scale: f32Implementations§
Trait Implementations§
Source§impl Surface for CrossCap
impl Surface for CrossCap
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 CrossCap
impl RefUnwindSafe for CrossCap
impl Send for CrossCap
impl Sync for CrossCap
impl Unpin for CrossCap
impl UnsafeUnpin for CrossCap
impl UnwindSafe for CrossCap
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