#[non_exhaustive]pub struct MapConversionDraft {
pub source_crs: EntityId,
pub target_crs: EntityId,
pub eastings: f64,
pub northings: f64,
pub orthogonal_height: f64,
pub x_axis: Option<(f64, f64)>,
pub scale: Option<f64>,
}Expand description
The offset and rotation placing a local grid on a projection.
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.source_crs: EntityIdSourceCRS: usually the model’s engineering context.
target_crs: EntityIdTargetCRS: must be an IfcProjectedCRS.
eastings: f64Eastings.
northings: f64Northings.
orthogonal_height: f64OrthogonalHeight.
x_axis: Option<(f64, f64)>XAxisAbscissa and XAxisOrdinate, the rotation vector.
Both components or neither: a single one underdetermines the rotation.
scale: Option<f64>Scale.
Implementations§
Source§impl MapConversionDraft
impl MapConversionDraft
Sourcepub const fn new(
source_crs: EntityId,
target_crs: EntityId,
eastings: f64,
northings: f64,
orthogonal_height: f64,
) -> Self
pub const fn new( source_crs: EntityId, target_crs: EntityId, eastings: f64, northings: f64, orthogonal_height: f64, ) -> Self
Starts a draft placing source_crs on target_crs at the given
offset, with no rotation or scale.
Trait Implementations§
Source§impl Clone for MapConversionDraft
impl Clone for MapConversionDraft
impl Copy for MapConversionDraft
Auto Trait Implementations§
impl Freeze for MapConversionDraft
impl RefUnwindSafe for MapConversionDraft
impl Send for MapConversionDraft
impl Sync for MapConversionDraft
impl Unpin for MapConversionDraft
impl UnsafeUnpin for MapConversionDraft
impl UnwindSafe for MapConversionDraft
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