pub struct Placement {
pub origin: Vector3,
pub e1: Vector3,
pub e2: Vector3,
pub n: Vector3,
}Expand description
Where a flat lies: sheet point (x, y) at origin + x e1 + y e2, its
unit normal n = e1 × e2 pointing from its A side to its B side.
e1, e2 and n are orthonormal.
Fields§
§origin: Vector3§e1: Vector3§e2: Vector3§n: Vector3Implementations§
Source§impl Placement
impl Placement
Sourcepub fn curve(&self, curve: &NurbCurve2D) -> GeopResult<NurbCurve3D>
pub fn curve(&self, curve: &NurbCurve2D) -> GeopResult<NurbCurve3D>
The sheet curve curve in space: exact, an affine map of its
control points.
Sourcepub fn offset(&self, t: Scalar) -> Self
pub fn offset(&self, t: Scalar) -> Self
The same placement t further along the normal: the B side’s.
Sourcepub fn coordinate_system(&self) -> GeopResult<CoordinateSystem>
pub fn coordinate_system(&self) -> GeopResult<CoordinateSystem>
As a coordinate system: u = e1, v = e2, w = n.
Trait Implementations§
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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