Package one.empty3.library
Class ArcBall
java.lang.Object
one.empty3.library.ArcBall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
arcball_init
(Representable representable) void
arcball_move
(int mx, int my) void
arcball_reset
(Representable representable) void
arcball_setzoom
(double radius, Point3D eye, Point3D up) void
arcball_start
(int mx, int my) int
glhInvertMatrixf2
(float[] m, float[] out) int
glhProjectf
(float objx, float objy, float objz, float[] modelview, float[] projection, int[] viewport, Point3D a) int
glhUnProjectf
(float winx, float winy, float winz, float[] modelview, float[] projection, int[] viewport, float[] objectCoordinate) int
gluUnProject
(float mx, float my, int mz, float[] ab_glm, float[] ab_glp, int[] ab_glv, Point3D a) void
MAT
(float[] m, int r, int c, float value) float
MAT0
(float[] m, int r, int c) void
MultiplyMatrices4by4OpenGL_FLOAT
(float[] result, float[] matrix1, float[] matrix2) void
MultiplyMatrixByVector4by4OpenGL_FLOAT
(float[] resultvector, float[] matrix, float[] pvector) planar_coords
(float mx, float my) static void
static void
static void
quatidentity
(Double[] q) static void
sphere_coords
(float mx, float my) void
SWAP_ROWS_DOUBLE
(double[] a, double[] b) void
SWAP_ROWS_FLOAT
(float[] a, float[] b)
-
Constructor Details
-
ArcBall
public ArcBall()
-
-
Method Details
-
glhProjectf
public int glhProjectf(float objx, float objy, float objz, float[] modelview, float[] projection, int[] viewport, Point3D a) -
glhUnProjectf
public int glhUnProjectf(float winx, float winy, float winz, float[] modelview, float[] projection, int[] viewport, float[] objectCoordinate) -
MultiplyMatrices4by4OpenGL_FLOAT
public void MultiplyMatrices4by4OpenGL_FLOAT(float[] result, float[] matrix1, float[] matrix2) -
MultiplyMatrixByVector4by4OpenGL_FLOAT
public void MultiplyMatrixByVector4by4OpenGL_FLOAT(float[] resultvector, float[] matrix, float[] pvector) -
SWAP_ROWS_DOUBLE
public void SWAP_ROWS_DOUBLE(double[] a, double[] b) -
SWAP_ROWS_FLOAT
public void SWAP_ROWS_FLOAT(float[] a, float[] b) -
MAT0
public float MAT0(float[] m, int r, int c) -
MAT
public void MAT(float[] m, int r, int c, float value) -
glhInvertMatrixf2
public int glhInvertMatrixf2(float[] m, float[] out) -
arcball_setzoom
-
quaternion
-
quatidentity
-
quatcopy
-
quatnext
-
edge_coords
-
sphere_coords
-
planar_coords
-
gluUnProject
public int gluUnProject(float mx, float my, int mz, float[] ab_glm, float[] ab_glp, int[] ab_glv, Point3D a) -
arcball_init
-
arcball_reset
-
arcball_start
public void arcball_start(int mx, int my) -
arcball_move
public void arcball_move(int mx, int my)
-