|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimogl.util.Calc
public class Calc
This class provides some usefull methods for calculations
| Constructor Summary | |
|---|---|
Calc()
|
|
| Method Summary | |
|---|---|
static void |
billboardCylindricalBegin(javax.media.opengl.GL gl)
Applies the cylindrical billboarding technique by performing some undo calculations on the current modelview matrix. |
static void |
billboardEnd(javax.media.opengl.GL gl)
Finishes the application of the current billboarding technique |
static void |
billboardSphericalBegin(javax.media.opengl.GL gl)
Applies the sphericla billboarding technique by performing some undo calculations on the current modelview matrix. |
static double |
cos(double value)
Returns the cosine value for the specified value |
static float[] |
removeRotations(javax.media.opengl.GL gl)
This method returns a float array with 16 values, that represents the modelview matrix with all rotation operations eliminated. |
static float[] |
removeTranslations(javax.media.opengl.GL gl)
This method returns a float array with 16 values, that represents the modelview matrix with all translate operations eliminated. |
static double |
sin(double value)
Returns the sine value for the specified value |
static double |
tan(double value)
Returns the tangent value for the specified value |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Calc()
| Method Detail |
|---|
public static double sin(double value)
value - value in degrees, not radians
public static double cos(double value)
value - value in degrees, not radians
public static double tan(double value)
value - value in degrees, not radians
public static void billboardSphericalBegin(javax.media.opengl.GL gl)
gl - public static void billboardCylindricalBegin(javax.media.opengl.GL gl)
gl - public static void billboardEnd(javax.media.opengl.GL gl)
public static float[] removeTranslations(javax.media.opengl.GL gl)
gl -
public static float[] removeRotations(javax.media.opengl.GL gl)
gl -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||