#[non_exhaustive]pub struct SiteReference {
pub entity: EntityId,
pub version: SchemaVersion,
pub ref_latitude: Option<CompoundPlaneAngle>,
pub ref_longitude: Option<CompoundPlaneAngle>,
pub ref_elevation: Option<f64>,
}Expand description
The WGS84 reference point an IfcSite states for its placement origin.
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.entity: EntityIdThe IfcSite entity this was read from.
version: SchemaVersionThe release the model header declares, whose rules were applied.
ref_latitude: Option<CompoundPlaneAngle>RefLatitude, validated against the release’s WHERE rules and the
WGS84 range [-90, 90].
ref_longitude: Option<CompoundPlaneAngle>RefLongitude, validated against the release’s WHERE rules and the
WGS84 range [-180, 180].
ref_elevation: Option<f64>RefElevation in metres: the authored value times the project
length scale. Height above sea level in an unnamed local datum.
Implementations§
Source§impl SiteReference
impl SiteReference
Sourcepub fn latitude_degrees(&self) -> Option<f64>
pub fn latitude_degrees(&self) -> Option<f64>
RefLatitude in decimal degrees, north positive.
Sourcepub fn longitude_degrees(&self) -> Option<f64>
pub fn longitude_degrees(&self) -> Option<f64>
RefLongitude in decimal degrees, east positive.
Trait Implementations§
Source§impl Clone for SiteReference
impl Clone for SiteReference
Source§fn clone(&self) -> SiteReference
fn clone(&self) -> SiteReference
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 moreSource§impl Debug for SiteReference
impl Debug for SiteReference
Source§impl PartialEq for SiteReference
impl PartialEq for SiteReference
impl StructuralPartialEq for SiteReference
Auto Trait Implementations§
impl Freeze for SiteReference
impl RefUnwindSafe for SiteReference
impl Send for SiteReference
impl Sync for SiteReference
impl Unpin for SiteReference
impl UnsafeUnpin for SiteReference
impl UnwindSafe for SiteReference
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