maspack.render
Class GLSupport

java.lang.Object
  extended by maspack.render.GLSupport

public class GLSupport
extends java.lang.Object


Constructor Summary
GLSupport()
           
 
Method Summary
static void GLMatrixToTransform(AffineTransform3d T, double[] mat)
           
static void GLMatrixToTransform(DenseMatrix T, double[] mat)
           
static void HSVtoRGB(float[] hsv, float[] rgb)
          Convert an HSV color to RGB representation.
static void interpolateColor(float[] result, float[] color0, float[] color1, double s)
           
static void RGBtoHSV(float[] hsv, float[] rgb)
          Convert an RGB color to HSV representation.
static void transformToGLMatrix(double[] mat, AffineTransform3d T)
           
static void transformToGLMatrix(double[] mat, Matrix T)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLSupport

public GLSupport()
Method Detail

transformToGLMatrix

public static void transformToGLMatrix(double[] mat,
                                       Matrix T)

GLMatrixToTransform

public static void GLMatrixToTransform(DenseMatrix T,
                                       double[] mat)

transformToGLMatrix

public static void transformToGLMatrix(double[] mat,
                                       AffineTransform3d T)

GLMatrixToTransform

public static void GLMatrixToTransform(AffineTransform3d T,
                                       double[] mat)

HSVtoRGB

public static void HSVtoRGB(float[] hsv,
                            float[] rgb)
Convert an HSV color to RGB representation.


RGBtoHSV

public static void RGBtoHSV(float[] hsv,
                            float[] rgb)
Convert an RGB color to HSV representation. It is assumed that all RBG and HSV values are in the range 0-1 (as opposed to the typical HSV ranges of [0-360], [0-100], [0-100]).


interpolateColor

public static void interpolateColor(float[] result,
                                    float[] color0,
                                    float[] color1,
                                    double s)