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

Method makeSkew

shared/java/Matrix33.java:216–223  ·  view source on GitHub ↗

Creates a Matrix33 to skew by (sx, sy). Returned matrix is: | 1 sx 0 | | sy 1 0 | | 0 0 1 | @param sx horizontal skew factor @param sy vertical skew factor @return Matrix33 with skew

(float sx, float sy)

Source from the content-addressed store, hash-verified

214 * @return Matrix33 with skew
215 */
216 @NotNull
217 public static Matrix33 makeSkew(float sx, float sy) {
218 return new Matrix33(new float[]{
219 1, sx, 0,
220 sy, 1, 0,
221 0, 0, 1
222 });
223 }
224
225 /**
226 * <p>When converting from Matrix33 to Matrix44, the third row and

Callers 1

skewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected