Skip to main content

MapConversion

Struct MapConversion 

Source
pub struct MapConversion {
Show 16 fields pub operation: u64, pub kind: String, pub source: u64, pub source_kind: String, pub target_crs: ProjectedCrs, pub eastings: f64, pub northings: f64, pub orthogonal_height: f64, pub x_axis: (f64, f64), pub scale: f64, pub factors: Option<(f64, f64, f64)>, pub project_unit: LengthUnit, pub map_unit: LengthUnit, pub map_unit_declared: bool, pub linear: [[f64; 3]; 3], pub translation: [f64; 3],
}
Expand description

One coordinate operation, resolved.

Fields§

§operation: u64

The coordinate-operation entity; for IFC2X3, the ePSet_MapConversion property set.

§kind: String

map-conversion, map-conversion-scaled or rigid-operation.

§source: u64

SourceCRS: a representation context or a CRS; for IFC2X3, the IfcProject or IfcSite carrying the property sets.

§source_kind: String

context, crs or (IFC2X3) property-set.

§target_crs: ProjectedCrs

The target IfcProjectedCRS.

§eastings: f64

Eastings as authored, in map_unit.

§northings: f64

Northings as authored, in map_unit.

§orthogonal_height: f64

OrthogonalHeight as authored, in map_unit (a rigid operation’s Height, or 0 when it states none).

§x_axis: (f64, f64)

(XAxisAbscissa, XAxisOrdinate), normalised.

§scale: f64

Scale as declared (1 when unset or for a rigid operation).

§factors: Option<(f64, f64, f64)>

IFC4X3 IfcMapConversionScaled (FactorX, FactorY, FactorZ).

§project_unit: LengthUnit

The project length unit the operation was resolved with.

§map_unit: LengthUnit

The map unit: the CRS’s MapUnit, or the project unit when unset.

§map_unit_declared: bool

Whether the CRS states MapUnit itself.

§linear: [[f64; 3]; 3]

The operation from project metres to map metres as three columns, the images of the project’s X, Y and Z axes.

§translation: [f64; 3]

Where the project origin lands, in map metres.

Trait Implementations§

Source§

impl Clone for MapConversion

Source§

fn clone(&self) -> MapConversion

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MapConversion

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for MapConversion

Source§

fn eq(&self, other: &MapConversion) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MapConversion

Source§

impl ToRecord for MapConversion

Source§

fn to_record(&self) -> Record

This snapshot as a record.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.