TriangleVerticesCalculator { public static float[] getDefaultTriangleVerticesData() { return new float[] { -1.0f, -1.0f, 0.0f, 0.00f, 0.00f, 1.0f, -1.0f, 0.0f, 1.00f, 0.00f, -1.0f, 1.0f, 0.0f, 0.00f, 1.00f, 1.0f, 1.0f, 0.0f, 1.00f, 1.00f, }; } TriangleVerticesCalculator();  TriangleVerticesCalculator(float[] triangleVerticesData); float[] getScale_PreserveAspectFit(int angle, int widthIn, int heightIn, int widthOut, int heightOut); float[] getScale_PreserveAspectCrop(int angle, int widthIn, int heightIn, int widthOut, int heightOut); float[] getAspectRatioVerticesData(int widthIn, int heightIn, int widthOut, int heightOut); static float[] getDefaultTriangleVerticesData();  }
@Test public void testDefaultData() { TriangleVerticesCalculator calculator = new TriangleVerticesCalculator(); float[] verticesData = calculator.getDefaultTriangleVerticesData(); assertAlmostEqual(verticesData, defaultData, 0.01); }