MCPcopy Create free account
hub / github.com/apache/xmlgraphics-fop / multiply

Method multiply

fop-core/src/main/java/org/apache/fop/area/CTM.java:165–172  ·  view source on GitHub ↗

Multiply new passed CTM with this one and generate a new result CTM. @param premult The CTM to multiply with this one. The new one will be the first multiplicand. @return CTM The result of multiplying premult this.

(CTM premult)

Source from the content-addressed store, hash-verified

163 * @return CTM The result of multiplying premult * this.
164 */
165 public CTM multiply(CTM premult) {
166 return new CTM((premult.a * a) + (premult.b * c),
167 (premult.a * b) + (premult.b * d),
168 (premult.c * a) + (premult.d * c),
169 (premult.c * b) + (premult.d * d),
170 (premult.e * a) + (premult.f * c) + e,
171 (premult.e * b) + (premult.f * d) + f);
172 }
173
174 /**
175 * Rotate this CTM by "angle" radians and return a new result CTM.

Callers 7

rotateMethod · 0.95
translateMethod · 0.95
scaleMethod · 0.95
getCTMandRelDimsMethod · 0.95
renderBlockViewportMethod · 0.95
renderBlockViewportMethod · 0.95
updateResultCTMMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected