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 float
BtoF(byte x)
static int
BtoI(byte x)
static byte
CLAMP(byte x, byte min, byte max)
static float
CLAMP(double x, double min, double max)
static float
CLAMP(float x, double min, double max)
static float
CLAMP(float x, float min, float max)
static int
CLAMP(int x, int min, int max)
static short
CLAMP(short x, short min, short max)
static float[]
cross33(float[] u, float[] v)
static float
det22(float a, float b, float c, float d)
static float
det33(float a1, float a2, float a3, float b1, float b2, float b3, float c1, float c2, float c3)
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)
static float[]
diff33(float[] u, float[] v)
static float
dot33(float[] a, float[] b)
static float
dot44(float[] a, float[] b)
static float
frac(float x)
static int
FtoI(float x)
static float
interpolate(int i, int n, float u1, float u2)
static float
interpolate(int i, int n, float u1, float u2, float du)
static float[]
inverseMatrix44(float[] a)
static int
ItoA(int x)
static int
ItoB(int x)
static float
ItoF(int x)
static int
ItoG(int x)
static int
ItoR(int x)
static int[]
ItoRGB(int i)
static int[]
ItoRGBA(int i)
static float[]
ItoRGBAf(int i)
static float[]
ItoRGBf(int i)
static void
loadMatrix44(float[] a, float[] b)
static int
logbase2(int n)
static float[]
mulMatrix31(float[] a, float[] b)
static float[]
mulMatrix41(float[] a, float[] b)
static float[]
mulMatrix44(float[] a, float[] b)
static float
normalize(float[] p)
static int
RGBAtoI(byte r, byte g, byte b, byte a)
static int
RGBAtoI(float r, float g, float b, float a)
static int
RGBAtoI(int r, int g, int b, int a)
static int
RGBtoI(byte r, byte g, byte b)
static int
RGBtoI(float r, float g, float b)
static int
RGBtoI(int r, int g, int b)
static void
showMatrix41(float[] m)
static void
showMatrix44(float[] m)
static int
StoI(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)
-
-