Use a less cracksmoking name.
This commit is contained in:
@@ -115,7 +115,7 @@ public class AffineTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public void transform (double[] matrix) {
|
||||
public void get (double[] matrix) {
|
||||
matrix[0] = m00; matrix[1] = m01;
|
||||
matrix[2] = m10; matrix[3] = m11;
|
||||
matrix[4] = tx; matrix[5] = ty;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class IdentityTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public void transform (double[] matrix) {
|
||||
public void get (double[] matrix) {
|
||||
matrix[0] = 1; matrix[1] = 0;
|
||||
matrix[2] = 0; matrix[3] = 1;
|
||||
matrix[4] = 0; matrix[5] = 0;
|
||||
|
||||
@@ -64,7 +64,7 @@ public class NonUniformTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public void transform (double[] matrix) {
|
||||
public void get (double[] matrix) {
|
||||
double sina = Math.sin(rotation), cosa = Math.cos(rotation);
|
||||
matrix[0] = cosa * scaleX; matrix[1] = sina * scaleY;
|
||||
matrix[2] = -sina * scaleX; matrix[3] = cosa * scaleY;
|
||||
|
||||
@@ -59,7 +59,7 @@ public class RigidTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public void transform (double[] matrix) {
|
||||
public void get (double[] matrix) {
|
||||
double sina = Math.sin(rotation), cosa = Math.cos(rotation);
|
||||
matrix[0] = cosa; matrix[1] = sina;
|
||||
matrix[2] = -sina; matrix[3] = cosa;
|
||||
|
||||
@@ -41,7 +41,7 @@ public interface Transform
|
||||
|
||||
/** Copies the affine transform matrix into the supplied array.
|
||||
* @param matrix the array which receives {@code m00, m01, m10, m11, tx, ty}. */
|
||||
void transform (double[] matrix);
|
||||
void get (double[] matrix);
|
||||
|
||||
/** Sets the uniform scale of this transform.
|
||||
* @return this instance, for chaining.
|
||||
|
||||
@@ -64,7 +64,7 @@ public class UniformTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public void transform (double[] matrix) {
|
||||
public void get (double[] matrix) {
|
||||
double sina = Math.sin(rotation), cosa = Math.cos(rotation);
|
||||
matrix[0] = cosa * scale; matrix[1] = sina * scale;
|
||||
matrix[2] = -sina * scale; matrix[3] = cosa * scale;
|
||||
|
||||
@@ -115,7 +115,7 @@ public class AffineTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public void transform (float[] matrix) {
|
||||
public void get (float[] matrix) {
|
||||
matrix[0] = m00; matrix[1] = m01;
|
||||
matrix[2] = m10; matrix[3] = m11;
|
||||
matrix[4] = tx; matrix[5] = ty;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class IdentityTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public void transform (float[] matrix) {
|
||||
public void get (float[] matrix) {
|
||||
matrix[0] = 1; matrix[1] = 0;
|
||||
matrix[2] = 0; matrix[3] = 1;
|
||||
matrix[4] = 0; matrix[5] = 0;
|
||||
|
||||
@@ -64,7 +64,7 @@ public class NonUniformTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public void transform (float[] matrix) {
|
||||
public void get (float[] matrix) {
|
||||
float sina = FloatMath.sin(rotation), cosa = FloatMath.cos(rotation);
|
||||
matrix[0] = cosa * scaleX; matrix[1] = sina * scaleY;
|
||||
matrix[2] = -sina * scaleX; matrix[3] = cosa * scaleY;
|
||||
|
||||
@@ -59,7 +59,7 @@ public class RigidTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public void transform (float[] matrix) {
|
||||
public void get (float[] matrix) {
|
||||
float sina = FloatMath.sin(rotation), cosa = FloatMath.cos(rotation);
|
||||
matrix[0] = cosa; matrix[1] = sina;
|
||||
matrix[2] = -sina; matrix[3] = cosa;
|
||||
|
||||
@@ -41,7 +41,7 @@ public interface Transform
|
||||
|
||||
/** Copies the affine transform matrix into the supplied array.
|
||||
* @param matrix the array which receives {@code m00, m01, m10, m11, tx, ty}. */
|
||||
void transform (float[] matrix);
|
||||
void get (float[] matrix);
|
||||
|
||||
/** Sets the uniform scale of this transform.
|
||||
* @return this instance, for chaining.
|
||||
|
||||
@@ -64,7 +64,7 @@ public class UniformTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public void transform (float[] matrix) {
|
||||
public void get (float[] matrix) {
|
||||
float sina = FloatMath.sin(rotation), cosa = FloatMath.cos(rotation);
|
||||
matrix[0] = cosa * scale; matrix[1] = sina * scale;
|
||||
matrix[2] = -sina * scale; matrix[3] = cosa * scale;
|
||||
|
||||
Reference in New Issue
Block a user