Creates a Matrix33 to translate by (dx, dy). Returned matrix is: | 1 0 dx | | 0 1 dy | | 0 0 1 | @param dx horizontal translation @param dy vertical translation @return Matrix33 with translation
(float dx, float dy)
| 58 | * @return Matrix33 with translation |
| 59 | */ |
| 60 | @NotNull @Contract("_, _ -> new") |
| 61 | public static Matrix33 makeTranslate(float dx, float dy) { |
| 62 | return new Matrix33(new float[] {1, 0, dx, 0, 1, dy, 0, 0, 1}); |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * <p>Creates a Matrix33 to scale by s. Returned matrix is:</p> |
no outgoing calls