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

Method makeConcat

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

130 * @return this multiplied by other
131 */
132 @NotNull
133 public Matrix33 makeConcat(Matrix33 other) {
134 return new Matrix33(new float[] {
135 _mat[0] * other._mat[0] + _mat[1] * other._mat[3] + _mat[2] * other._mat[6],
136 _mat[0] * other._mat[1] + _mat[1] * other._mat[4] + _mat[2] * other._mat[7],
137 _mat[0] * other._mat[2] + _mat[1] * other._mat[5] + _mat[2] * other._mat[8],
138 _mat[3] * other._mat[0] + _mat[4] * other._mat[3] + _mat[5] * other._mat[6],
139 _mat[3] * other._mat[1] + _mat[4] * other._mat[4] + _mat[5] * other._mat[7],
140 _mat[3] * other._mat[2] + _mat[4] * other._mat[5] + _mat[5] * other._mat[8],
141 _mat[6] * other._mat[0] + _mat[7] * other._mat[3] + _mat[8] * other._mat[6],
142 _mat[6] * other._mat[1] + _mat[7] * other._mat[4] + _mat[8] * other._mat[7],
143 _mat[6] * other._mat[2] + _mat[7] * other._mat[5] + _mat[8] * other._mat[8],
144 });
145 }
146
147 /**
148 * 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