pub struct GlassSurfaceProfile { /* private fields */ }Expand description
Two principal cross-sections defining one coupled oval surface inside a superelliptic aperture.
Implementations§
Source§impl GlassSurfaceProfile
impl GlassSurfaceProfile
pub fn new( x_profile: GlassProfileCurve, y_profile: GlassProfileCurve, depth: f32, radial_power: f32, ) -> Result<GlassSurfaceProfile, GlassProfileError>
pub fn isotropic( profile: GlassProfileCurve, depth: f32, radial_power: f32, ) -> Result<GlassSurfaceProfile, GlassProfileError>
pub fn flat() -> GlassSurfaceProfile
pub fn regular() -> GlassSurfaceProfile
pub fn lens() -> GlassSurfaceProfile
pub fn x_profile(self) -> GlassProfileCurve
pub fn y_profile(self) -> GlassProfileCurve
pub fn depth(self) -> f32
pub fn radial_power(self) -> f32
pub fn axis_coupling(self) -> f32
pub fn sample_normalized(self, position: (f32, f32)) -> GlassSurfaceSample
pub fn with_depth( self, depth: f32, ) -> Result<GlassSurfaceProfile, GlassProfileError>
pub fn with_radial_power( self, radial_power: f32, ) -> Result<GlassSurfaceProfile, GlassProfileError>
pub fn with_axis_coupling( self, axis_coupling: f32, ) -> Result<GlassSurfaceProfile, GlassProfileError>
Trait Implementations§
Source§impl Clone for GlassSurfaceProfile
impl Clone for GlassSurfaceProfile
Source§fn clone(&self) -> GlassSurfaceProfile
fn clone(&self) -> GlassSurfaceProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GlassSurfaceProfile
Source§impl Debug for GlassSurfaceProfile
impl Debug for GlassSurfaceProfile
Source§impl Default for GlassSurfaceProfile
impl Default for GlassSurfaceProfile
Source§fn default() -> GlassSurfaceProfile
fn default() -> GlassSurfaceProfile
Returns the “default value” for a type. Read more
Source§impl PartialEq for GlassSurfaceProfile
impl PartialEq for GlassSurfaceProfile
impl StructuralPartialEq for GlassSurfaceProfile
Auto Trait Implementations§
impl Freeze for GlassSurfaceProfile
impl RefUnwindSafe for GlassSurfaceProfile
impl Send for GlassSurfaceProfile
impl Sync for GlassSurfaceProfile
impl Unpin for GlassSurfaceProfile
impl UnsafeUnpin for GlassSurfaceProfile
impl UnwindSafe for GlassSurfaceProfile
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