MCPcopy Create free account
hub / github.com/HumbleUI/Skija / makeTranslate

Method makeTranslate

shared/java/Matrix33.java:61–64  ·  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

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

Callers 11

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

Calls

no outgoing calls

Tested by 1

executeMethod · 0.76