Package jgl.context
Class gl_util
- java.lang.Object
-
- jgl.context.gl_util
-
public final class gl_util extends Object
gl_util is the utility class of jGL 2.4.- Version:
- 0.3, 20 Nov 2006
- Author:
- Robin Bing-Yu Chen
-
-
Constructor Summary
Constructors Constructor Description gl_util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static float[]adjoint44(float[] a)static floatBtoF(byte x)static intBtoI(byte x)static byteCLAMP(byte x, byte min, byte max)static floatCLAMP(double x, double min, double max)static floatCLAMP(float x, double min, double max)static floatCLAMP(float x, float min, float max)static intCLAMP(int x, int min, int max)static shortCLAMP(short x, short min, short max)static float[]cross33(float[] u, float[] v)static floatdet22(float a, float b, float c, float d)static floatdet33(float a1, float a2, float a3, float b1, float b2, float b3, float c1, float c2, float c3)static floatdet44(float a1, float a2, float a3, float a4, float b1, float b2, float b3, float b4, float c1, float c2, float c3, float c4, float d1, float d2, float d3, float d4)static float[]diff33(float[] u, float[] v)static floatdot33(float[] a, float[] b)static floatdot44(float[] a, float[] b)static floatfrac(float x)static intFtoI(float x)static floatinterpolate(int i, int n, float u1, float u2)static floatinterpolate(int i, int n, float u1, float u2, float du)static float[]inverseMatrix44(float[] a)static intItoA(int x)static intItoB(int x)static floatItoF(int x)static intItoG(int x)static intItoR(int x)static int[]ItoRGB(int i)static int[]ItoRGBA(int i)static float[]ItoRGBAf(int i)static float[]ItoRGBf(int i)static voidloadMatrix44(float[] a, float[] b)static intlogbase2(int n)static float[]mulMatrix31(float[] a, float[] b)static float[]mulMatrix41(float[] a, float[] b)static float[]mulMatrix44(float[] a, float[] b)static floatnormalize(float[] p)static intRGBAtoI(byte r, byte g, byte b, byte a)static intRGBAtoI(float r, float g, float b, float a)static intRGBAtoI(int r, int g, int b, int a)static intRGBtoI(byte r, byte g, byte b)static intRGBtoI(float r, float g, float b)static intRGBtoI(int r, int g, int b)static voidshowMatrix41(float[] m)static voidshowMatrix44(float[] m)static intStoI(short x)
-
-
-
Method Detail
-
showMatrix44
public static void showMatrix44(float[] m)
-
showMatrix41
public static void showMatrix41(float[] m)
-
mulMatrix44
public static float[] mulMatrix44(float[] a, float[] b)
-
mulMatrix41
public static float[] mulMatrix41(float[] a, float[] b)
-
mulMatrix31
public static float[] mulMatrix31(float[] a, float[] b)
-
loadMatrix44
public static void loadMatrix44(float[] a, float[] b)
-
det22
public static float det22(float a, float b, float c, float d)
-
det33
public static float det33(float a1, float a2, float a3, float b1, float b2, float b3, float c1, float c2, float c3)
-
det44
public static float det44(float a1, float a2, float a3, float a4, float b1, float b2, float b3, float b4, float c1, float c2, float c3, float c4, float d1, float d2, float d3, float d4)
-
adjoint44
public static float[] adjoint44(float[] a)
-
inverseMatrix44
public static float[] inverseMatrix44(float[] a)
-
dot33
public static float dot33(float[] a, float[] b)
-
dot44
public static float dot44(float[] a, float[] b)
-
diff33
public static float[] diff33(float[] u, float[] v)
-
cross33
public static float[] cross33(float[] u, float[] v)
-
logbase2
public static int logbase2(int n)
-
frac
public static float frac(float x)
-
normalize
public static float normalize(float[] p)
-
interpolate
public static float interpolate(int i, int n, float u1, float u2, float du)
-
interpolate
public static float interpolate(int i, int n, float u1, float u2)
-
CLAMP
public static byte CLAMP(byte x, byte min, byte max)
-
CLAMP
public static short CLAMP(short x, short min, short max)
-
CLAMP
public static int CLAMP(int x, int min, int max)
-
CLAMP
public static float CLAMP(float x, float min, float max)
-
CLAMP
public static float CLAMP(float x, double min, double max)
-
CLAMP
public static float CLAMP(double x, double min, double max)
-
BtoI
public static int BtoI(byte x)
-
StoI
public static int StoI(short x)
-
FtoI
public static int FtoI(float x)
-
BtoF
public static float BtoF(byte x)
-
ItoF
public static float ItoF(int x)
-
ItoR
public static int ItoR(int x)
-
ItoG
public static int ItoG(int x)
-
ItoB
public static int ItoB(int x)
-
ItoA
public static int ItoA(int x)
-
RGBAtoI
public static int RGBAtoI(byte r, byte g, byte b, byte a)
-
RGBAtoI
public static int RGBAtoI(int r, int g, int b, int a)
-
RGBAtoI
public static int RGBAtoI(float r, float g, float b, float a)
-
RGBtoI
public static int RGBtoI(byte r, byte g, byte b)
-
RGBtoI
public static int RGBtoI(int r, int g, int b)
-
RGBtoI
public static int RGBtoI(float r, float g, float b)
-
ItoRGBA
public static int[] ItoRGBA(int i)
-
ItoRGBAf
public static float[] ItoRGBAf(int i)
-
ItoRGB
public static int[] ItoRGB(int i)
-
ItoRGBf
public static float[] ItoRGBf(int i)
-
-