t3.hrd.state
Class JOGLHelper

java.lang.Object
  extended by t3.hrd.state.JOGLHelper

public class JOGLHelper
extends java.lang.Object


Nested Class Summary
static class JOGLHelper.OGLException
           
static class JOGLHelper.PropertiesException
           
static class JOGLHelper.TesselatedPolygonComponent
          tesselation!
 
Constructor Summary
JOGLHelper()
           
 
Method Summary
static java.util.List<Jama.Matrix> applyMatrixToSetOfMatrices(Jama.Matrix m, java.util.List<Jama.Matrix> ms)
           
static Jama.Matrix[] applyMatrixToSetOfMatrices(Jama.Matrix m, Jama.Matrix[] ms)
           
static boolean areasIntersect(java.awt.geom.Area i, java.awt.geom.Area j)
           
static int[] bufferedImageToIntArrayForTextureWithoutCopyIfPossible(java.awt.image.BufferedImage b)
           
static short[] bufferedImageToShortArrayForTextureWithoutCopyIfPossible(java.awt.image.BufferedImage b)
           
static java.awt.geom.Area cleanUpPolygonalArea(java.awt.geom.Area messyArea)
           
static java.awt.image.BufferedImage convertBufferedImageToNewTypeIfNecessary(java.awt.image.BufferedImage o, int newType)
           
static java.awt.image.BufferedImage createNewBufferedImageForTexture(int w, int h, boolean useUSHORT565RGBnotINTARGB)
           
static java.awt.image.ColorModel createNewColorModelForTexture(boolean useUSHORT565RGBnotINTARGB)
           
static java.awt.image.BufferedImage createNewImageFromPartOfImageAWithoutSharing(int x, int y, int w, int h, java.awt.image.BufferedImage a)
           
static java.awt.image.BufferedImage createNewImageFromPartOfImageAWithSharing(int ax, int ay, int w, int h, int offsetXInNewImage, int offsetYInNewImage, java.awt.image.BufferedImage a)
           
static java.awt.image.WritableRaster createNewRasterForTexture(int w, int h, boolean useUSHORT565RGBnotINTARGB)
           
static java.awt.image.SampleModel createNewSampleModelForTexture(int w, int h, boolean useUSHORT565RGBnotINTARGB)
           
static java.awt.geom.Rectangle2D createUnionButIgnoreZeroAreaRects(java.awt.geom.Rectangle2D a, java.awt.geom.Rectangle2D b)
           
static void drawRectangleCorrectSize(java.awt.Graphics2D g, java.awt.Rectangle r)
           
static void drawShapesInRandomColors(java.awt.Graphics2D g, java.util.List<java.awt.Shape> ss)
           
static boolean equalToPrecision(double a, double b, double precision)
           
static java.util.List<java.lang.String> explode(java.lang.String v, java.lang.String sep)
           
static void fillAreaPolysInRandomColors(java.awt.Graphics2D g, java.awt.geom.Area a)
           
static void fillShapeInRandomColor(java.awt.Graphics2D g, java.awt.Shape s)
           
static Jama.Matrix[] get2hmCornerPointsFrom2r(java.awt.geom.Rectangle2D r)
           
static Jama.Matrix get2hmIdentity()
           
static java.util.List<java.util.List<Jama.Matrix>> get2hmPolysFromPolygonalArea(java.awt.geom.Area a)
           
static Jama.Matrix get2hmRotation(double thetaClockwise)
           
static Jama.Matrix get2hmScale(double sx, double sy)
           
static Jama.Matrix get2hmScaRotTra(double sx, double sy, double thetaClockwise, double dx, double dy)
           
static Jama.Matrix get2hmTranslation(double dx, double dy)
           
static Jama.Matrix get3hmIdentity()
           
static Jama.Matrix get3hmScale(double sx, double sy, double sz)
           
static Jama.Matrix get3hmTranslation(double dx, double dy, double dz)
           
static java.awt.image.BufferedImage getBIthatUsesAllOfBuffer(java.awt.image.BufferedImage b)
           
static java.awt.geom.Rectangle2D getBoundingRectFrom2hmPoly(java.util.List<Jama.Matrix> poly, Jama.Matrix transform)
           
static java.awt.geom.Rectangle2D.Double getBoundingRectFrom2hmPoly(Jama.Matrix[] poly, Jama.Matrix transform)
           
static java.awt.geom.Area getCopyOfArea(java.awt.geom.Area a)
           
static double[] getDFromM(Jama.Matrix m)
           
static double getDistanceBetween2hmPoints(Jama.Matrix pt1, Jama.Matrix pt2)
           
static double getDistOfPointFromLine(double px, double py, Jama.Matrix lp1, Jama.Matrix lp2)
           
static double getDistOfPointFromLine(Jama.Matrix p, Jama.Matrix lp1, Jama.Matrix lp2)
           
static double getDistOfPointFromPoly(double px, double py, Jama.Matrix[] poly)
           
static java.awt.geom.GeneralPath getGeneralPathFrom2hmPoly(java.util.List<Jama.Matrix> poly)
           
static java.awt.geom.GeneralPath getGeneralPathFrom2hmPoly(Jama.Matrix[] poly)
           
static double getHarvilleDistOfPointFromPoly(double px, double py, Jama.Matrix[] poly)
           
static java.awt.geom.Point2D getIntersectionOfTwoLines(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
          Computes the intersection between two lines.
static Jama.Matrix getIntersectionOfTwoLines(Jama.Matrix l1a, Jama.Matrix l1b, Jama.Matrix l2a, Jama.Matrix l2b)
           
static Jama.Matrix getm2hTo3hSettingZToConst(double z)
           
static Jama.Matrix getm3hTo2hDiscardZDoNotProject()
           
static Jama.Matrix[] getMatrixArrayFromMatrixList(java.util.List<Jama.Matrix> poly)
           
static Jama.Matrix getMFromD(double[] d)
           
static Jama.Matrix getMFromD(double d1, double d2, double d3)
           
static Jama.Matrix getMFromD(double d1, double d2, double d3, double d4)
           
static int getNearestPowerOfTwoGE(int i)
           
static double getNormalisedAngleRads(double o)
          GEOM STUFF ***********************
static Jama.Matrix getPlaneToPlaneHomogMatrixFromFour2hmPointCorrespondances(Jama.Matrix[] pointsFrom2hm, Jama.Matrix[] pointsTo2hm)
           
static Jama.Matrix getPlaneToPlaneHomogMatrixFromN2hmPointCorrespondances(Jama.Matrix[] pointsFrom2hm, Jama.Matrix[] pointsTo2hm, int n)
           
static double getPolarAngleOfLineBetween2hmPoints(Jama.Matrix pt1, Jama.Matrix pt2)
           
static Jama.Matrix getProjectionMatrixFromFrustum(double left, double right, double bottom, double top, double near, double far)
           
static java.awt.Color getRandomColor(int alpha)
           
static Jama.Matrix getViewportMatrix(double w, double h, double cx, double cy, double f, double n)
           
static double[] homogeniseD(double[] v)
           
static Jama.Matrix homogeniseM(Jama.Matrix m)
           
static java.lang.String implode(java.util.List<?> l, java.lang.String sep)
           
static java.awt.image.WritableRaster intArrayToWritableRasterForTextureWithoutCopy(int[] buff, int w, int h)
           
static void logMatrix(java.util.logging.Logger logger, java.util.logging.Level level, java.lang.String msg, Jama.Matrix m)
           
static java.lang.String matrixToString(Jama.Matrix m, int w, int d)
           
static double mean(java.util.List<java.lang.Double> l)
           
static double moduloAndPositive(double n, double mod)
           
static void oglColor(javax.media.opengl.GL gl, java.awt.Color c)
           
static void oglColorFromARGBint(javax.media.opengl.GL gl, int ARGB)
           
static int oglCreateTexture(javax.media.opengl.GL gl, int w, int h, java.awt.image.BufferedImage b)
           
static boolean oglCurrentBoundTextureIsResident(javax.media.opengl.GL gl)
           
static void oglDestroyTexture(javax.media.opengl.GL gl, int textureName)
           
static void oglDrawTesselatedPolygon(javax.media.opengl.GL gl, java.util.List<JOGLHelper.TesselatedPolygonComponent> l)
           
static void oglReportIfError(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu)
           
static void oglTesselateAndDraw2hmPoly(javax.media.opengl.GL gl, java.lang.Iterable<Jama.Matrix> m2hPoints, Jama.Matrix m2hTo3hTransform)
           
static void oglThrowExceptionIfError(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu)
           
static void oglUpdateTextureContents(javax.media.opengl.GL gl, int tx, int ty, int iw, int ih, java.awt.image.BufferedImage b)
           
static void oglVertex4dFromM(javax.media.opengl.GL gl, Jama.Matrix m)
           
static void oglVertex4dFromMs(javax.media.opengl.GL gl, java.util.List<Jama.Matrix> ms, Jama.Matrix transform)
           
static void pastePartOfImageAIntoPartOfImageBWithoutSharing(int bx, int by, int ax, int ay, int w, int h, java.awt.image.BufferedImage a, java.awt.image.BufferedImage b)
           
static void printOutPoint(Jama.Matrix m2hPoint)
           
static void printOutPolygon(java.util.List<Jama.Matrix> poly)
           
static void printOutPolygons(java.util.List<java.util.List<Jama.Matrix>> polys)
           
static boolean props_getBoolean(java.util.Properties p, java.lang.String s)
           
static double props_getDouble(java.util.Properties p, java.lang.String s)
           
static int props_getInt(java.util.Properties p, java.lang.String s)
           
static java.util.List<java.lang.Integer> props_getIntList(java.util.Properties p, java.lang.String k)
           
static java.lang.String props_getString(java.util.Properties p, java.lang.String s)
           
static java.util.List<java.lang.String> props_getStringList(java.util.Properties p, java.lang.String s)
           
static void props_setList(java.util.List<?> l, java.util.Properties p, java.lang.String s)
           
static boolean rectanglesAreEqualToPrecision(java.awt.geom.Rectangle2D i, java.awt.geom.Rectangle2D j, double precision)
           
static void removeLimbsWidthLessThanD(java.util.List<Jama.Matrix> poly, double d)
           
static Jama.Matrix[] rotateArray(Jama.Matrix[] a, int n)
           
static double sd(java.util.List<java.lang.Double> l)
           
static java.awt.image.WritableRaster shortArrayToWritableRasterForTextureWithoutCopy(short[] buff, int w, int h)
           
static void sortAscending(java.util.List<java.lang.Double> l)
          STATS STUFF ***********************
static void storePropertiesSorted(java.util.Properties p, java.io.OutputStream out, java.lang.String comments)
          writing out a properties file
static java.util.List<JOGLHelper.TesselatedPolygonComponent> tesselateJavaAreaInto2hmPolys(java.awt.geom.Area a, Jama.Matrix mTransform)
           
static double[] unhomogeniseD(double[] v)
           
static Jama.Matrix unhomogeniseM(Jama.Matrix m)
           
static void unHomogeniseMInPlaceLeavingThreeEls(Jama.Matrix m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOGLHelper

public JOGLHelper()
Method Detail

implode

public static java.lang.String implode(java.util.List<?> l,
                                       java.lang.String sep)

logMatrix

public static void logMatrix(java.util.logging.Logger logger,
                             java.util.logging.Level level,
                             java.lang.String msg,
                             Jama.Matrix m)

props_setList

public static void props_setList(java.util.List<?> l,
                                 java.util.Properties p,
                                 java.lang.String s)

props_getStringList

public static java.util.List<java.lang.String> props_getStringList(java.util.Properties p,
                                                                   java.lang.String s)
                                                            throws JOGLHelper.PropertiesException
Throws:
JOGLHelper.PropertiesException

explode

public static java.util.List<java.lang.String> explode(java.lang.String v,
                                                       java.lang.String sep)

props_getIntList

public static java.util.List<java.lang.Integer> props_getIntList(java.util.Properties p,
                                                                 java.lang.String k)
                                                          throws JOGLHelper.PropertiesException
Throws:
JOGLHelper.PropertiesException

props_getString

public static java.lang.String props_getString(java.util.Properties p,
                                               java.lang.String s)
                                        throws JOGLHelper.PropertiesException
Throws:
JOGLHelper.PropertiesException

props_getInt

public static int props_getInt(java.util.Properties p,
                               java.lang.String s)
                        throws JOGLHelper.PropertiesException
Throws:
JOGLHelper.PropertiesException

props_getDouble

public static double props_getDouble(java.util.Properties p,
                                     java.lang.String s)
                              throws JOGLHelper.PropertiesException
Throws:
JOGLHelper.PropertiesException

props_getBoolean

public static boolean props_getBoolean(java.util.Properties p,
                                       java.lang.String s)
                                throws JOGLHelper.PropertiesException
Throws:
JOGLHelper.PropertiesException

sortAscending

public static void sortAscending(java.util.List<java.lang.Double> l)
STATS STUFF ***********************


mean

public static double mean(java.util.List<java.lang.Double> l)

sd

public static double sd(java.util.List<java.lang.Double> l)

oglCurrentBoundTextureIsResident

public static boolean oglCurrentBoundTextureIsResident(javax.media.opengl.GL gl)

oglCreateTexture

public static int oglCreateTexture(javax.media.opengl.GL gl,
                                   int w,
                                   int h,
                                   java.awt.image.BufferedImage b)

oglDestroyTexture

public static void oglDestroyTexture(javax.media.opengl.GL gl,
                                     int textureName)

oglUpdateTextureContents

public static void oglUpdateTextureContents(javax.media.opengl.GL gl,
                                            int tx,
                                            int ty,
                                            int iw,
                                            int ih,
                                            java.awt.image.BufferedImage b)

createNewBufferedImageForTexture

public static java.awt.image.BufferedImage createNewBufferedImageForTexture(int w,
                                                                            int h,
                                                                            boolean useUSHORT565RGBnotINTARGB)

createNewRasterForTexture

public static java.awt.image.WritableRaster createNewRasterForTexture(int w,
                                                                      int h,
                                                                      boolean useUSHORT565RGBnotINTARGB)

createNewSampleModelForTexture

public static java.awt.image.SampleModel createNewSampleModelForTexture(int w,
                                                                        int h,
                                                                        boolean useUSHORT565RGBnotINTARGB)

createNewColorModelForTexture

public static java.awt.image.ColorModel createNewColorModelForTexture(boolean useUSHORT565RGBnotINTARGB)

intArrayToWritableRasterForTextureWithoutCopy

public static java.awt.image.WritableRaster intArrayToWritableRasterForTextureWithoutCopy(int[] buff,
                                                                                          int w,
                                                                                          int h)

shortArrayToWritableRasterForTextureWithoutCopy

public static java.awt.image.WritableRaster shortArrayToWritableRasterForTextureWithoutCopy(short[] buff,
                                                                                            int w,
                                                                                            int h)

bufferedImageToIntArrayForTextureWithoutCopyIfPossible

public static int[] bufferedImageToIntArrayForTextureWithoutCopyIfPossible(java.awt.image.BufferedImage b)

bufferedImageToShortArrayForTextureWithoutCopyIfPossible

public static short[] bufferedImageToShortArrayForTextureWithoutCopyIfPossible(java.awt.image.BufferedImage b)

getBIthatUsesAllOfBuffer

public static java.awt.image.BufferedImage getBIthatUsesAllOfBuffer(java.awt.image.BufferedImage b)

createNewImageFromPartOfImageAWithoutSharing

public static java.awt.image.BufferedImage createNewImageFromPartOfImageAWithoutSharing(int x,
                                                                                        int y,
                                                                                        int w,
                                                                                        int h,
                                                                                        java.awt.image.BufferedImage a)

createNewImageFromPartOfImageAWithSharing

public static java.awt.image.BufferedImage createNewImageFromPartOfImageAWithSharing(int ax,
                                                                                     int ay,
                                                                                     int w,
                                                                                     int h,
                                                                                     int offsetXInNewImage,
                                                                                     int offsetYInNewImage,
                                                                                     java.awt.image.BufferedImage a)

pastePartOfImageAIntoPartOfImageBWithoutSharing

public static void pastePartOfImageAIntoPartOfImageBWithoutSharing(int bx,
                                                                   int by,
                                                                   int ax,
                                                                   int ay,
                                                                   int w,
                                                                   int h,
                                                                   java.awt.image.BufferedImage a,
                                                                   java.awt.image.BufferedImage b)

convertBufferedImageToNewTypeIfNecessary

public static java.awt.image.BufferedImage convertBufferedImageToNewTypeIfNecessary(java.awt.image.BufferedImage o,
                                                                                    int newType)

getRandomColor

public static java.awt.Color getRandomColor(int alpha)

drawShapesInRandomColors

public static void drawShapesInRandomColors(java.awt.Graphics2D g,
                                            java.util.List<java.awt.Shape> ss)

fillShapeInRandomColor

public static void fillShapeInRandomColor(java.awt.Graphics2D g,
                                          java.awt.Shape s)

fillAreaPolysInRandomColors

public static void fillAreaPolysInRandomColors(java.awt.Graphics2D g,
                                               java.awt.geom.Area a)

cleanUpPolygonalArea

public static java.awt.geom.Area cleanUpPolygonalArea(java.awt.geom.Area messyArea)

removeLimbsWidthLessThanD

public static void removeLimbsWidthLessThanD(java.util.List<Jama.Matrix> poly,
                                             double d)

printOutPolygons

public static void printOutPolygons(java.util.List<java.util.List<Jama.Matrix>> polys)

printOutPolygon

public static void printOutPolygon(java.util.List<Jama.Matrix> poly)

printOutPoint

public static void printOutPoint(Jama.Matrix m2hPoint)

getNormalisedAngleRads

public static double getNormalisedAngleRads(double o)
GEOM STUFF ***********************


moduloAndPositive

public static double moduloAndPositive(double n,
                                       double mod)

drawRectangleCorrectSize

public static void drawRectangleCorrectSize(java.awt.Graphics2D g,
                                            java.awt.Rectangle r)

getIntersectionOfTwoLines

public static Jama.Matrix getIntersectionOfTwoLines(Jama.Matrix l1a,
                                                    Jama.Matrix l1b,
                                                    Jama.Matrix l2a,
                                                    Jama.Matrix l2b)

getIntersectionOfTwoLines

public static java.awt.geom.Point2D getIntersectionOfTwoLines(double x1,
                                                              double y1,
                                                              double x2,
                                                              double y2,
                                                              double x3,
                                                              double y3,
                                                              double x4,
                                                              double y4)
Computes the intersection between two lines. The calculated point is approximate, since integers are used. If you need a more precise result, use doubles everywhere. (c) 2007 Alexander Hristov. Use Freely (LGPL license). http://www.ahristov.com

Parameters:
x1 - Point 1 of Line 1
y1 - Point 1 of Line 1
x2 - Point 2 of Line 1
y2 - Point 2 of Line 1
x3 - Point 1 of Line 2
y3 - Point 1 of Line 2
x4 - Point 2 of Line 2
y4 - Point 2 of Line 2
Returns:
Point where the segments intersect, or null if they don't

getCopyOfArea

public static java.awt.geom.Area getCopyOfArea(java.awt.geom.Area a)

rectanglesAreEqualToPrecision

public static boolean rectanglesAreEqualToPrecision(java.awt.geom.Rectangle2D i,
                                                    java.awt.geom.Rectangle2D j,
                                                    double precision)

equalToPrecision

public static boolean equalToPrecision(double a,
                                       double b,
                                       double precision)

areasIntersect

public static boolean areasIntersect(java.awt.geom.Area i,
                                     java.awt.geom.Area j)

createUnionButIgnoreZeroAreaRects

public static java.awt.geom.Rectangle2D createUnionButIgnoreZeroAreaRects(java.awt.geom.Rectangle2D a,
                                                                          java.awt.geom.Rectangle2D b)

getNearestPowerOfTwoGE

public static int getNearestPowerOfTwoGE(int i)

getProjectionMatrixFromFrustum

public static Jama.Matrix getProjectionMatrixFromFrustum(double left,
                                                         double right,
                                                         double bottom,
                                                         double top,
                                                         double near,
                                                         double far)

getViewportMatrix

public static Jama.Matrix getViewportMatrix(double w,
                                            double h,
                                            double cx,
                                            double cy,
                                            double f,
                                            double n)

getm2hTo3hSettingZToConst

public static Jama.Matrix getm2hTo3hSettingZToConst(double z)

getm3hTo2hDiscardZDoNotProject

public static Jama.Matrix getm3hTo2hDiscardZDoNotProject()

rotateArray

public static Jama.Matrix[] rotateArray(Jama.Matrix[] a,
                                        int n)

get2hmScale

public static Jama.Matrix get2hmScale(double sx,
                                      double sy)

get3hmScale

public static Jama.Matrix get3hmScale(double sx,
                                      double sy,
                                      double sz)

get2hmIdentity

public static Jama.Matrix get2hmIdentity()

get3hmIdentity

public static Jama.Matrix get3hmIdentity()

get2hmTranslation

public static Jama.Matrix get2hmTranslation(double dx,
                                            double dy)

get2hmScaRotTra

public static Jama.Matrix get2hmScaRotTra(double sx,
                                          double sy,
                                          double thetaClockwise,
                                          double dx,
                                          double dy)

get3hmTranslation

public static Jama.Matrix get3hmTranslation(double dx,
                                            double dy,
                                            double dz)

get2hmRotation

public static Jama.Matrix get2hmRotation(double thetaClockwise)

getDistanceBetween2hmPoints

public static double getDistanceBetween2hmPoints(Jama.Matrix pt1,
                                                 Jama.Matrix pt2)

getPolarAngleOfLineBetween2hmPoints

public static double getPolarAngleOfLineBetween2hmPoints(Jama.Matrix pt1,
                                                         Jama.Matrix pt2)

applyMatrixToSetOfMatrices

public static Jama.Matrix[] applyMatrixToSetOfMatrices(Jama.Matrix m,
                                                       Jama.Matrix[] ms)

applyMatrixToSetOfMatrices

public static java.util.List<Jama.Matrix> applyMatrixToSetOfMatrices(Jama.Matrix m,
                                                                     java.util.List<Jama.Matrix> ms)

unhomogeniseD

public static double[] unhomogeniseD(double[] v)

homogeniseM

public static Jama.Matrix homogeniseM(Jama.Matrix m)

unHomogeniseMInPlaceLeavingThreeEls

public static void unHomogeniseMInPlaceLeavingThreeEls(Jama.Matrix m)

unhomogeniseM

public static Jama.Matrix unhomogeniseM(Jama.Matrix m)

homogeniseD

public static double[] homogeniseD(double[] v)

getDFromM

public static double[] getDFromM(Jama.Matrix m)

getMFromD

public static Jama.Matrix getMFromD(double[] d)

getMFromD

public static Jama.Matrix getMFromD(double d1,
                                    double d2,
                                    double d3)

getMFromD

public static Jama.Matrix getMFromD(double d1,
                                    double d2,
                                    double d3,
                                    double d4)

getBoundingRectFrom2hmPoly

public static java.awt.geom.Rectangle2D getBoundingRectFrom2hmPoly(java.util.List<Jama.Matrix> poly,
                                                                   Jama.Matrix transform)
Parameters:
poly -
transform - can be null if desired
Returns:

getBoundingRectFrom2hmPoly

public static java.awt.geom.Rectangle2D.Double getBoundingRectFrom2hmPoly(Jama.Matrix[] poly,
                                                                          Jama.Matrix transform)
Parameters:
poly -
transform - can be null if desired
Returns:

getMatrixArrayFromMatrixList

public static Jama.Matrix[] getMatrixArrayFromMatrixList(java.util.List<Jama.Matrix> poly)

getGeneralPathFrom2hmPoly

public static java.awt.geom.GeneralPath getGeneralPathFrom2hmPoly(java.util.List<Jama.Matrix> poly)

getGeneralPathFrom2hmPoly

public static java.awt.geom.GeneralPath getGeneralPathFrom2hmPoly(Jama.Matrix[] poly)

getDistOfPointFromPoly

public static double getDistOfPointFromPoly(double px,
                                            double py,
                                            Jama.Matrix[] poly)

getHarvilleDistOfPointFromPoly

public static double getHarvilleDistOfPointFromPoly(double px,
                                                    double py,
                                                    Jama.Matrix[] poly)

getDistOfPointFromLine

public static double getDistOfPointFromLine(double px,
                                            double py,
                                            Jama.Matrix lp1,
                                            Jama.Matrix lp2)

getDistOfPointFromLine

public static double getDistOfPointFromLine(Jama.Matrix p,
                                            Jama.Matrix lp1,
                                            Jama.Matrix lp2)

get2hmPolysFromPolygonalArea

public static java.util.List<java.util.List<Jama.Matrix>> get2hmPolysFromPolygonalArea(java.awt.geom.Area a)

get2hmCornerPointsFrom2r

public static Jama.Matrix[] get2hmCornerPointsFrom2r(java.awt.geom.Rectangle2D r)

getPlaneToPlaneHomogMatrixFromFour2hmPointCorrespondances

public static Jama.Matrix getPlaneToPlaneHomogMatrixFromFour2hmPointCorrespondances(Jama.Matrix[] pointsFrom2hm,
                                                                                    Jama.Matrix[] pointsTo2hm)

getPlaneToPlaneHomogMatrixFromN2hmPointCorrespondances

public static Jama.Matrix getPlaneToPlaneHomogMatrixFromN2hmPointCorrespondances(Jama.Matrix[] pointsFrom2hm,
                                                                                 Jama.Matrix[] pointsTo2hm,
                                                                                 int n)

oglVertex4dFromM

public static void oglVertex4dFromM(javax.media.opengl.GL gl,
                                    Jama.Matrix m)

oglVertex4dFromMs

public static void oglVertex4dFromMs(javax.media.opengl.GL gl,
                                     java.util.List<Jama.Matrix> ms,
                                     Jama.Matrix transform)

oglThrowExceptionIfError

public static void oglThrowExceptionIfError(javax.media.opengl.GL gl,
                                            javax.media.opengl.glu.GLU glu)
                                     throws JOGLHelper.OGLException
Throws:
JOGLHelper.OGLException

oglReportIfError

public static void oglReportIfError(javax.media.opengl.GL gl,
                                    javax.media.opengl.glu.GLU glu)

oglColor

public static void oglColor(javax.media.opengl.GL gl,
                            java.awt.Color c)

oglColorFromARGBint

public static void oglColorFromARGBint(javax.media.opengl.GL gl,
                                       int ARGB)

matrixToString

public static java.lang.String matrixToString(Jama.Matrix m,
                                              int w,
                                              int d)

storePropertiesSorted

public static void storePropertiesSorted(java.util.Properties p,
                                         java.io.OutputStream out,
                                         java.lang.String comments)
                                  throws java.io.IOException
writing out a properties file

Throws:
java.io.IOException

tesselateJavaAreaInto2hmPolys

public static java.util.List<JOGLHelper.TesselatedPolygonComponent> tesselateJavaAreaInto2hmPolys(java.awt.geom.Area a,
                                                                                                  Jama.Matrix mTransform)

oglDrawTesselatedPolygon

public static void oglDrawTesselatedPolygon(javax.media.opengl.GL gl,
                                            java.util.List<JOGLHelper.TesselatedPolygonComponent> l)

oglTesselateAndDraw2hmPoly

public static void oglTesselateAndDraw2hmPoly(javax.media.opengl.GL gl,
                                              java.lang.Iterable<Jama.Matrix> m2hPoints,
                                              Jama.Matrix m2hTo3hTransform)