Android Open Source - PinchToClose Area Algorithm






From Project

Back to project page PinchToClose.

License

The source code is released under:

Apache License

If you think the Android project PinchToClose 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 lt.marius.pinchtoclose.algo;
//w  ww  .j  ava2s.  co m
public interface AreaAlgorithm extends Visualizable {

  public static final AreaAlgorithm TRIANGLE = new TriangleArea();
  public static final AreaAlgorithm DELAUNAY = new DelaunayArea();
  
  /**
   * Computes the 2D area of specified points
   * @param x array of the x coords of the points
   * @param y array of the y coords of the points
   * @return the size of the area
   */
  public float area(float[] x, float []y);
  
}




Java Source Code List

lt.marius.pinchtoclose.CloseDecoratorLayout.java
lt.marius.pinchtoclose.MultiFingerAreaListener.java
lt.marius.pinchtoclose.MultiFingerGestureDetector.java
lt.marius.pinchtoclose.MultiFingerGestureListener.java
lt.marius.pinchtoclose.PinchToClose.java
lt.marius.pinchtoclose.algo.AreaAlgorithm.java
lt.marius.pinchtoclose.algo.DelaunayArea.java
lt.marius.pinchtoclose.algo.TriangleArea.java
lt.marius.pinchtoclose.algo.Visualizable.java
lt.marius.pinchtoclosedemo.testui.MainActivity.java