maspack.render
Class GLSupport
java.lang.Object
maspack.render.GLSupport
public class GLSupport
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GLSupport
public GLSupport()
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)