Creates a Matrix33 to skew by (sx, sy). Returned matrix is: | 1 sx 0 | | sy 1 0 | | 0 0 1 | @param sx horizontal skew factor @param sy vertical skew factor @return Matrix33 with skew
(float sx, float sy)
| 214 | * @return Matrix33 with skew |
| 215 | */ |
| 216 | @NotNull |
| 217 | public static Matrix33 makeSkew(float sx, float sy) { |
| 218 | return new Matrix33(new float[]{ |
| 219 | 1, sx, 0, |
| 220 | sy, 1, 0, |
| 221 | 0, 0, 1 |
| 222 | }); |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * <p>When converting from Matrix33 to Matrix44, the third row and |