#[non_exhaustive]pub struct VerticalSegmentDraft {
pub start_dist_along: f64,
pub horizontal_length: f64,
pub start_height: f64,
pub start_gradient: f64,
pub end_gradient: f64,
pub radius_of_curvature: Option<f64>,
pub predefined_type: &'static str,
}Expand description
Authored fields for IfcAlignmentVerticalSegment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start_dist_along: f64StartDistAlong, measured along the horizontal layout.
horizontal_length: f64HorizontalLength; must be non-negative.
start_height: f64StartHeight.
start_gradient: f64StartGradient, a ratio, not an angle.
end_gradient: f64EndGradient, a ratio.
radius_of_curvature: Option<f64>RadiusOfCurvature; required by arc families.
predefined_type: &'static strPredefinedType, e.g. CONSTANTGRADIENT or CIRCULARARC.
Implementations§
Source§impl VerticalSegmentDraft
impl VerticalSegmentDraft
Sourcepub const fn new(
start_dist_along: f64,
horizontal_length: f64,
start_height: f64,
start_gradient: f64,
end_gradient: f64,
predefined_type: &'static str,
) -> Self
pub const fn new( start_dist_along: f64, horizontal_length: f64, start_height: f64, start_gradient: f64, end_gradient: f64, predefined_type: &'static str, ) -> Self
Starts a draft with the segment’s required attributes.
Sourcepub const fn radius_of_curvature(self, value: f64) -> Self
pub const fn radius_of_curvature(self, value: f64) -> Self
Sets RadiusOfCurvature, required by the arc families.
Trait Implementations§
Source§impl Clone for VerticalSegmentDraft
impl Clone for VerticalSegmentDraft
impl Copy for VerticalSegmentDraft
Auto Trait Implementations§
impl Freeze for VerticalSegmentDraft
impl RefUnwindSafe for VerticalSegmentDraft
impl Send for VerticalSegmentDraft
impl Sync for VerticalSegmentDraft
impl Unpin for VerticalSegmentDraft
impl UnsafeUnpin for VerticalSegmentDraft
impl UnwindSafe for VerticalSegmentDraft
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