pub struct SurfaceParameterDelta {
pub origin_or_center: Option<f64>,
pub axis_or_normal_radians: Option<f64>,
pub radius: Option<f64>,
pub major_radius: Option<f64>,
pub minor_radius: Option<f64>,
pub angle_radians: Option<f64>,
}Expand description
Gauge-aware change from an initial/supplied carrier to its final carrier.
Fields that do not apply to a primitive remain None.
Fields§
§origin_or_center: Option<f64>Gauge-aware displacement of an origin, center, axis line, or apex.
axis_or_normal_radians: Option<f64>Change in axis or normal direction, in radians.
radius: Option<f64>Change in the primitive radius, or torus minor radius.
major_radius: Option<f64>Change in torus major radius.
minor_radius: Option<f64>Change in torus minor radius.
angle_radians: Option<f64>Change in cone half-angle, in radians.
Implementations§
Source§impl SurfaceParameterDelta
impl SurfaceParameterDelta
Sourcepub fn between(
initial: AnalyticSurface,
refined: AnalyticSurface,
) -> Option<Self>
pub fn between( initial: AnalyticSurface, refined: AnalyticSurface, ) -> Option<Self>
Compare compatible carrier parameterizations. Returns None when the
primitive types differ. Axis/normal angles respect each carrier’s gauge:
cone axes are directed, while plane, cylinder, and torus directions are
sign-equivalent.
Trait Implementations§
Source§impl Clone for SurfaceParameterDelta
impl Clone for SurfaceParameterDelta
Source§fn clone(&self) -> SurfaceParameterDelta
fn clone(&self) -> SurfaceParameterDelta
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 SurfaceParameterDelta
Source§impl Debug for SurfaceParameterDelta
impl Debug for SurfaceParameterDelta
Source§impl Default for SurfaceParameterDelta
impl Default for SurfaceParameterDelta
Source§fn default() -> SurfaceParameterDelta
fn default() -> SurfaceParameterDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SurfaceParameterDeltawhere
SurfaceParameterDelta: Default,
impl<'de> Deserialize<'de> for SurfaceParameterDeltawhere
SurfaceParameterDelta: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SurfaceParameterDelta
impl PartialEq for SurfaceParameterDelta
Source§impl Serialize for SurfaceParameterDelta
impl Serialize for SurfaceParameterDelta
impl StructuralPartialEq for SurfaceParameterDelta
Auto Trait Implementations§
impl Freeze for SurfaceParameterDelta
impl RefUnwindSafe for SurfaceParameterDelta
impl Send for SurfaceParameterDelta
impl Sync for SurfaceParameterDelta
impl Unpin for SurfaceParameterDelta
impl UnsafeUnpin for SurfaceParameterDelta
impl UnwindSafe for SurfaceParameterDelta
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