MCPcopy Create free account
hub / github.com/JetBrains/skija / makeTranslate

Method makeTranslate

shared/java/Matrix33.java:60–63  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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>

Callers 9

executeMethod · 0.95
drawDrawableMethod · 0.95
translateMethod · 0.95
Matrix33Class · 0.95
drawMethod · 0.95
BitmapSceneMethod · 0.95
drawMethod · 0.95
drawMethod · 0.95
translateMethod · 0.95

Calls

no outgoing calls

Tested by 1

executeMethod · 0.76