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

Method makeConcat

shared/java/Matrix33.java:131–144  ·  view source on GitHub ↗

Creates Matrix33 by multiplying this by other. This can be thought of mapping by other before applying Matrix. Given: | A B C | | J K L | this = | D E F |, other = | M N O | | G H I | | P Q R | Returns:

(Matrix33 other)

Source from the content-addressed store, hash-verified

129 * @return this multiplied by other
130 */
131 @NotNull
132 public Matrix33 makeConcat(Matrix33 other) {
133 return new Matrix33(new float[] {
134 _mat[0] * other._mat[0] + _mat[1] * other._mat[3] + _mat[2] * other._mat[6],
135 _mat[0] * other._mat[1] + _mat[1] * other._mat[4] + _mat[2] * other._mat[7],
136 _mat[0] * other._mat[2] + _mat[1] * other._mat[5] + _mat[2] * other._mat[8],
137 _mat[3] * other._mat[0] + _mat[4] * other._mat[3] + _mat[5] * other._mat[6],
138 _mat[3] * other._mat[1] + _mat[4] * other._mat[4] + _mat[5] * other._mat[7],
139 _mat[3] * other._mat[2] + _mat[4] * other._mat[5] + _mat[5] * other._mat[8],
140 _mat[6] * other._mat[0] + _mat[7] * other._mat[3] + _mat[8] * other._mat[6],
141 _mat[6] * other._mat[1] + _mat[7] * other._mat[4] + _mat[8] * other._mat[7],
142 _mat[6] * other._mat[2] + _mat[7] * other._mat[5] + _mat[8] * other._mat[8],
143 });
144 }
145
146 /**
147 * Creates a Matrix33 to rotate by |deg| about a pivot point at (0, 0).

Callers 4

executeMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
translateMethod · 0.80

Calls

no outgoing calls

Tested by 1

executeMethod · 0.64