#[non_exhaustive]pub struct CompoundPlaneAngle {
pub degrees: i64,
pub minutes: i64,
pub seconds: i64,
pub millionths: Option<i64>,
}Expand description
An IfcCompoundPlaneAngleMeasure as authored: signed integer degrees,
minutes, seconds and optional millionths of a second.
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.degrees: i64Whole degrees (SELF[1]).
minutes: i64Minutes (SELF[2]).
seconds: i64Seconds (SELF[3]).
millionths: Option<i64>Millionths of a second (SELF[4]), when the list has four members.
Implementations§
Source§impl CompoundPlaneAngle
impl CompoundPlaneAngle
Sourcepub fn decimal_degrees(&self) -> f64
pub fn decimal_degrees(&self) -> f64
The angle in decimal degrees: the signed sum
degrees + minutes/60 + seconds/3600 + millionths/3.6e9.
The components share one sign under every release’s sign rule
(IFC2X3 WR4 leaves the fourth free; it is summed with its own sign).
Trait Implementations§
Source§impl Clone for CompoundPlaneAngle
impl Clone for CompoundPlaneAngle
Source§fn clone(&self) -> CompoundPlaneAngle
fn clone(&self) -> CompoundPlaneAngle
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 CompoundPlaneAngle
Source§impl Debug for CompoundPlaneAngle
impl Debug for CompoundPlaneAngle
impl Eq for CompoundPlaneAngle
Source§impl PartialEq for CompoundPlaneAngle
impl PartialEq for CompoundPlaneAngle
impl StructuralPartialEq for CompoundPlaneAngle
Auto Trait Implementations§
impl Freeze for CompoundPlaneAngle
impl RefUnwindSafe for CompoundPlaneAngle
impl Send for CompoundPlaneAngle
impl Sync for CompoundPlaneAngle
impl Unpin for CompoundPlaneAngle
impl UnsafeUnpin for CompoundPlaneAngle
impl UnwindSafe for CompoundPlaneAngle
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