Function shear

Source
pub fn shear<E, Shearing>(
    shearing: Shearing,
) -> Mat3<E, DescriptorOrderColumnMajor>
where E: MatEl + NdFloat, Shearing: VectorIter<E, 2>, Mat3<E, DescriptorOrderColumnMajor>: RawSliceMut<Scalar = E>,
Expand description

Produces a 2D shearing matrix.

§Parameters

  • shearing: A vector representing shearing factors along the x and y axes.

§Returns

  • A 3x3 shearing matrix.