formatting
This commit is contained in:
@@ -27,7 +27,8 @@ public final class AndroidUtils {
|
||||
private static final String[] EMULATOR_NAMES = { "google_sdk", "sdk" };
|
||||
|
||||
/**
|
||||
* @return true if the application is running on the Android emulator, false otherwise.
|
||||
* @return true if the application is running on the Android emulator, false
|
||||
* otherwise.
|
||||
*/
|
||||
public static boolean applicationRunsOnAndroidEmulator() {
|
||||
for (int i = 0, n = EMULATOR_NAMES.length; i < n; ++i) {
|
||||
|
||||
@@ -17,7 +17,7 @@ package org.oscim.utils;
|
||||
public class FastMath {
|
||||
/**
|
||||
* from http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog
|
||||
*
|
||||
*
|
||||
* @param v
|
||||
* ...
|
||||
* @return ...
|
||||
|
||||
@@ -23,6 +23,7 @@ public final class GeometryUtils {
|
||||
/**
|
||||
* Calculates the center of the minimum bounding rectangle for the given
|
||||
* coordinates.
|
||||
*
|
||||
* @param coordinates
|
||||
* the coordinates for which calculation should be done.
|
||||
* @return the center coordinates of the minimum bounding rectangle.
|
||||
@@ -192,7 +193,7 @@ public final class GeometryUtils {
|
||||
return 2; //XSEC_COINCIDENT;
|
||||
|
||||
// lines are parallel
|
||||
return 3; //XSEC_PARALLEL;
|
||||
return 3; //XSEC_PARALLEL;
|
||||
}
|
||||
|
||||
double ua = ua_numr / denr;
|
||||
|
||||
@@ -8,14 +8,14 @@ import android.opengl.GLSurfaceView;
|
||||
import android.util.Log;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class GlConfigChooser implements GLSurfaceView.EGLConfigChooser {
|
||||
static private final String TAG = "ConfigChooser";
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public static int stencilSize = 0;
|
||||
|
||||
@@ -126,7 +126,8 @@ public class GlConfigChooser implements GLSurfaceView.EGLConfigChooser {
|
||||
int s = findConfigAttrib(egl, display, config, EGL10.EGL_STENCIL_SIZE, 0);
|
||||
|
||||
/*
|
||||
* EGL_CONFIG_CAVEAT value #define EGL_NONE 0x3038 #define EGL_SLOW_CONFIG 0x3050 #define
|
||||
* EGL_CONFIG_CAVEAT value #define EGL_NONE 0x3038 #define
|
||||
* EGL_SLOW_CONFIG 0x3050 #define
|
||||
* EGL_NON_CONFORMANT_CONFIG 0x3051
|
||||
*/
|
||||
|
||||
|
||||
@@ -18,9 +18,11 @@ import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* An LRUCache with a fixed size and an access-order policy. Old mappings are automatically removed from the cache when
|
||||
* new mappings are added. This implementation uses an {@link LinkedHashMap} internally.
|
||||
*
|
||||
* An LRUCache with a fixed size and an access-order policy. Old mappings are
|
||||
* automatically removed from the cache when
|
||||
* new mappings are added. This implementation uses an {@link LinkedHashMap}
|
||||
* internally.
|
||||
*
|
||||
* @param <K>
|
||||
* the type of the map key, see {@link Map}.
|
||||
* @param <V>
|
||||
|
||||
@@ -88,7 +88,7 @@ public class LineClipper {
|
||||
}
|
||||
|
||||
// CohenSutherland clipping algorithm clips a line from
|
||||
// P0 = (x0, y0) to P1 = (x1, y1) against a rectangle with
|
||||
// P0 = (x0, y0) to P1 = (x1, y1) against a rectangle with
|
||||
// diagonal from (xmin, ymin) to (xmax, ymax).
|
||||
private static boolean clip(int x0, int y0, int x1, int y1,
|
||||
int xmin, int ymin, int xmax, int ymax, int outcode0, int outcode1) {
|
||||
|
||||
@@ -111,7 +111,8 @@ public abstract class PausableThread extends Thread {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called once when this thread continues to work after a pause. The default implementation is empty.
|
||||
* Called once when this thread continues to work after a pause. The default
|
||||
* implementation is empty.
|
||||
*/
|
||||
protected void afterPause() {
|
||||
// do nothing
|
||||
@@ -122,7 +123,8 @@ public abstract class PausableThread extends Thread {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called once at the end of the {@link #run()} method. The default implementation is empty.
|
||||
* Called once at the end of the {@link #run()} method. The default
|
||||
* implementation is empty.
|
||||
*/
|
||||
protected void afterRun() {
|
||||
// do nothing
|
||||
@@ -130,7 +132,7 @@ public abstract class PausableThread extends Thread {
|
||||
|
||||
/**
|
||||
* Called when this thread is not paused and should do its work.
|
||||
*
|
||||
*
|
||||
* @throws InterruptedException
|
||||
* if the thread has been interrupted.
|
||||
*/
|
||||
@@ -142,7 +144,8 @@ public abstract class PausableThread extends Thread {
|
||||
protected abstract String getThreadName();
|
||||
|
||||
/**
|
||||
* @return the priority of this thread. The default value is {@link Thread#NORM_PRIORITY}.
|
||||
* @return the priority of this thread. The default value is
|
||||
* {@link Thread#NORM_PRIORITY}.
|
||||
*/
|
||||
protected int getThreadPriority() {
|
||||
return Thread.NORM_PRIORITY;
|
||||
|
||||
Reference in New Issue
Block a user