pub struct UvMap {
pub m: [[Scalar; 2]; 2],
pub shift: Vector2,
}Expand description
An affine map of (u, v) that takes each parameter to one parameter:
x' = m x + shift, m diagonal, or — the parameters swapped —
anti-diagonal.
Fields§
§m: [[Scalar; 2]; 2]§shift: Vector2Implementations§
Source§impl UvMap
impl UvMap
Sourcepub fn apply_to(&self, curve: &NurbCurve2D) -> GeopResult<NurbCurve2D>
pub fn apply_to(&self, curve: &NurbCurve2D) -> GeopResult<NurbCurve2D>
The pcurve curve mapped: each homogeneous control point (w x, w)
to (m (w x) + w shift, w), linear in it, so the mapped curve is
exactly the curve mapped, rational or not.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UvMap
impl RefUnwindSafe for UvMap
impl Send for UvMap
impl Sync for UvMap
impl Unpin for UvMap
impl UnsafeUnpin for UvMap
impl UnwindSafe for UvMap
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