Android Open Source - Bubble-wrapper Shape Tools






From Project

Back to project page Bubble-wrapper.

License

The source code is released under:

Apache License

If you think the Android project Bubble-wrapper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.awhittle.bubblewrapper;
/*from  w  w  w .j ava  2  s.c o m*/
public class ShapeTools {
  
  public static float[] translateMatrix(float A[], float transX, float transY){

    float[] B = A;
    
    for(int i=0; i<B.length; i+=3 ){
      B[i] = A[i] + transX;
    }
    
    for(int j=1; j<B.length; j+=3 ){
      B[j] = A[j] + transY;
    }
    
    return B;
  }

  public static float[] scaleMatrix(float A[], float scale){

    float[] B;
    B = new float[A.length];
    
    for(int i=0; i<A.length; i++ )
      B[i] = A[i] * scale;
    
    return B;
  }
}




Java Source Code List

com.awhittle.bubblewrapper.MainActivity.java
com.awhittle.bubblewrapper.MyGLRenderer.java
com.awhittle.bubblewrapper.MyGLSurfaceView.java
com.awhittle.bubblewrapper.Popped.java
com.awhittle.bubblewrapper.ShapeTools.java
com.awhittle.bubblewrapper.Unpopped.java