pub struct Datum<S: Scalar> {
pub kind: DatumKind,
pub frame: CoordinateSystem<S>,
}Expand description
One datum: a right-handed orthonormal frame, and which part of it the datum stands for. Every datum has a whole frame, whatever its kind, so anything built on it — a sketch on a plane, a datum offset from a point — has axes to be built along.
Fields§
§kind: DatumKind§frame: CoordinateSystem<S>Implementations§
Source§impl<S: Scalar> Datum<S>
impl<S: Scalar> Datum<S>
Sourcepub fn component(&self, component: DatumComponent) -> GeopResult<Datum<S>>
pub fn component(&self, component: DatumComponent) -> GeopResult<Datum<S>>
The datum component of this frame stands for, as a datum of its
own, with the frame turned so its w is that axis — or that plane’s
normal — and its other two axes keep their order: a sketch’s x/y
on the plane normal to z run along x/y, on the one normal to
x along y/z, on the one normal to y along x/-z. Fails if
this datum is not a frame.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Datum<S>where
S: Freeze,
impl<S> RefUnwindSafe for Datum<S>where
S: RefUnwindSafe,
impl<S> Send for Datum<S>
impl<S> Sync for Datum<S>
impl<S> Unpin for Datum<S>where
S: Unpin,
impl<S> UnsafeUnpin for Datum<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Datum<S>where
S: UnwindSafe,
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