Mat.shear

Applies a 2D shear to this matrix.

struct Mat(T, size_t rowCount, size_t colCount)
ref
static if(rowCount == colCount)
static if(N == 3 && isFloatingPoint!T)
Mat!(T, N, N)
shear
(
T sx
,
T sy
)
if (
isNumeric!T &&
rowCount > 0
&&
colCount > 0
)

Parameters

sx T

The shear factor on the x-axis.

sy T

The shear factor on the y-axis.

Return Value

Type: Mat!(T, N, N)

A reference to this matrix, for method chaining.

Meta