@Test public void testPdfbox2872() { Matrix m = new Matrix(2, 4, 5, 8, 2, 0); COSArray toCOSArray = m.toCOSArray(); assertEquals(new COSFloat(2), toCOSArray.get(0)); assertEquals(new COSFloat(4), toCOSArray.get(1)); assertEquals(new COSFloat(5), toCOSArray.get(2)); assertEquals(new COSFloat(8), toCOSArray.get(3)); assertEquals(new COSFloat(2), toCOSArray.get(4)); assertEquals(new COSFloat(0), toCOSArray.get(5)); }
public COSArray toCOSArray() { COSArray array = new COSArray(); array.add(new COSFloat(single[0])); array.add(new COSFloat(single[1])); array.add(new COSFloat(single[3])); array.add(new COSFloat(single[4])); array.add(new COSFloat(single[6])); array.add(new COSFloat(single[7])); return array; }
Matrix implements Cloneable { public COSArray toCOSArray() { COSArray array = new COSArray(); array.add(new COSFloat(single[0])); array.add(new COSFloat(single[1])); array.add(new COSFloat(single[3])); array.add(new COSFloat(single[4])); array.add(new COSFloat(single[6])); array.add(new COSFloat(single[7])); return array; } }
Matrix implements Cloneable { public COSArray toCOSArray() { COSArray array = new COSArray(); array.add(new COSFloat(single[0])); array.add(new COSFloat(single[1])); array.add(new COSFloat(single[3])); array.add(new COSFloat(single[4])); array.add(new COSFloat(single[6])); array.add(new COSFloat(single[7])); return array; } Matrix();  Matrix(COSArray array);  Matrix(float a, float b, float c, float d, float e, float f);  Matrix(AffineTransform at); }
Matrix implements Cloneable { public COSArray toCOSArray() { COSArray array = new COSArray(); array.add(new COSFloat(single[0])); array.add(new COSFloat(single[1])); array.add(new COSFloat(single[3])); array.add(new COSFloat(single[4])); array.add(new COSFloat(single[6])); array.add(new COSFloat(single[7])); return array; } Matrix();  Matrix(COSArray array);  Matrix(float a, float b, float c, float d, float e, float f);  Matrix(AffineTransform at); @Deprecated void reset(); AffineTransform createAffineTransform(); @Deprecated void setFromAffineTransform( AffineTransform af ); float getValue( int row, int column ); void setValue( int row, int column, float value ); float[][] getValues(); @Deprecated double[][] getValuesAsDouble(); void concatenate(Matrix matrix); void translate(Vector vector); void translate(float tx, float ty); void scale(float sx, float sy); void rotate(double theta); Matrix multiply( Matrix b ); Matrix multiply( Matrix other, Matrix result ); void transform(PointF point); PointF transformPoint(double x, double y); Vector transform(Vector vector); @Deprecated Matrix extractScaling(); static Matrix getScaleInstance(float sx, float sy); @Deprecated Matrix extractTranslating(); static Matrix getTranslatingInstance(float tx, float ty); static Matrix getTranslateInstance(float tx, float ty); static Matrix getRotateInstance(double theta, float tx, float ty); static Matrix concatenate(Matrix a, Matrix b); @Override Matrix clone(); float getScalingFactorX(); float getScalingFactorY(); float getScaleX(); float getShearY(); float getShearX(); float getScaleY(); float getTranslateX(); float getTranslateY(); @Deprecated float getXPosition(); @Deprecated float getYPosition(); COSArray toCOSArray(); @Override String toString(); }
Matrix implements Cloneable { public COSArray toCOSArray() { COSArray array = new COSArray(); array.add(new COSFloat(single[0])); array.add(new COSFloat(single[1])); array.add(new COSFloat(single[3])); array.add(new COSFloat(single[4])); array.add(new COSFloat(single[6])); array.add(new COSFloat(single[7])); return array; } Matrix();  Matrix(COSArray array);  Matrix(float a, float b, float c, float d, float e, float f);  Matrix(AffineTransform at); @Deprecated void reset(); AffineTransform createAffineTransform(); @Deprecated void setFromAffineTransform( AffineTransform af ); float getValue( int row, int column ); void setValue( int row, int column, float value ); float[][] getValues(); @Deprecated double[][] getValuesAsDouble(); void concatenate(Matrix matrix); void translate(Vector vector); void translate(float tx, float ty); void scale(float sx, float sy); void rotate(double theta); Matrix multiply( Matrix b ); Matrix multiply( Matrix other, Matrix result ); void transform(PointF point); PointF transformPoint(double x, double y); Vector transform(Vector vector); @Deprecated Matrix extractScaling(); static Matrix getScaleInstance(float sx, float sy); @Deprecated Matrix extractTranslating(); static Matrix getTranslatingInstance(float tx, float ty); static Matrix getTranslateInstance(float tx, float ty); static Matrix getRotateInstance(double theta, float tx, float ty); static Matrix concatenate(Matrix a, Matrix b); @Override Matrix clone(); float getScalingFactorX(); float getScalingFactorY(); float getScaleX(); float getShearY(); float getShearX(); float getScaleY(); float getTranslateX(); float getTranslateY(); @Deprecated float getXPosition(); @Deprecated float getYPosition(); COSArray toCOSArray(); @Override String toString();  }