holoedit.util
Class Ut

java.lang.Object
  extended by holoedit.util.Ut

public class Ut
extends java.lang.Object


Field Summary
static java.lang.String APP_PATH
           
static HoloMenuBar barMenu
           
static java.lang.String dirCar
          Les codes de caractere etant differents sous mac et pc, chaque fois qu'on fait appel a certains d'entre eux on vient les chercher ici.
static int DIRTY_ALL
           
static int DIRTY_ROOM
           
static int DIRTY_ROOM3D
           
static int DIRTY_SCORE
           
static int DIRTY_TIME
           
static int drawPtsNb
           
static java.lang.String hv
           
static int INIT_TRACK_NB
           
static boolean MAC
          boolean permettant de determiner l'environnement cette distinction permet de compiler l'application sur n'importe quelle plate-forme tout en permettant l'execution du code compile sur n'importe quelle plate-forme.
static int MAX_TRACK_NB
           
static char numCar
          le petit rond ° / ¡
static char numCar2
           
static int OLD_TRACK_NB
           
static double version
           
 
Constructor Summary
Ut()
           
 
Method Summary
static void alert(java.lang.String title, java.lang.String message)
           
static boolean between(double v, double l, double u)
           
static boolean between(float v, float l, float u)
           
static boolean between(int v, int l, int u)
           
static double clip(double value, double lowlim, double uplim)
           
static float clip(float value, float lowlim, float uplim)
           
static int clip(int value, int lowlim, int uplim)
           
static double clipL(double value, double lowlim)
           
static float clipL(float value, float lowlim)
          Returns the greater of two float values.
static int clipL(int value, int lowlim)
          Returns the greater of two int values.
static double clipU(double value, double uplim)
           
static float clipU(float value, float uplim)
           
static int clipU(int value, int uplim)
          Returns the smaller of two int values.
static java.lang.String dir(java.lang.String s)
           
static double interpol(double f1, double f2, double step)
           
static float interpol(float f1, float f2, double step)
           
static int interpol(int f1, int f2, double step)
           
static java.lang.String intToDate(int dateNum)
          date en centieme de secondes
static boolean isPair(int i)
           
static double max(double a, double b)
           
static float max(float a, float b)
           
static float max(float a, float b, float c)
          Returns the greater of three float values.
static int max(int a, int b)
           
static int max(int a, int b, int c)
          Returns the greater of three int values.
static double mean(double a, double b)
           
static float mean(float a, float b)
           
static int mean(int a, int b)
           
static double min(double a, double b)
           
static float min(float a, float b)
           
static float min(float a, float b, float c)
          Returns the smaller of three float values.
static int min(int a, int b)
           
static int min(int a, int b, int c)
          Returns the smaller of three int values.
static double mod(double value, double modulo)
           
static float mod(float value, float modulo)
           
static int mod(int value, int modulo)
           
static int modabs(int value, int modulo)
           
static double modSigned(double value, double modulo)
           
static float modSigned(float value, float modulo)
           
static int modSigned(int value, int modulo)
           
static java.lang.String msToHMSMS(float ms)
           
static void post(java.lang.String s)
           
static void print(java.lang.String str)
           
static int readInt1(byte[] array, int offset)
           
static int readInt2(byte[] array, int offset)
           
static int readInt3(byte[] array, int offset)
           
static int readInt4(byte[] array, int offset)
           
static java.lang.String readString(byte[] array, int offset, int charNum)
           
static int readUnsignedByte(byte[] array, int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP_PATH

public static java.lang.String APP_PATH

MAC

public static boolean MAC
boolean permettant de determiner l'environnement cette distinction permet de compiler l'application sur n'importe quelle plate-forme tout en permettant l'execution du code compile sur n'importe quelle plate-forme.


dirCar

public static java.lang.String dirCar
Les codes de caractere etant differents sous mac et pc, chaque fois qu'on fait appel a certains d'entre eux on vient les chercher ici. Ce caracteres sert a la gestion des arborescences de fichiers


numCar

public static char numCar
le petit rond ° / ¡


numCar2

public static char numCar2

hv

public static java.lang.String hv

version

public static double version

barMenu

public static HoloMenuBar barMenu

drawPtsNb

public static int drawPtsNb

INIT_TRACK_NB

public static final int INIT_TRACK_NB
See Also:
Constant Field Values

OLD_TRACK_NB

public static final int OLD_TRACK_NB
See Also:
Constant Field Values

MAX_TRACK_NB

public static final int MAX_TRACK_NB
See Also:
Constant Field Values

DIRTY_ALL

public static final int DIRTY_ALL
See Also:
Constant Field Values

DIRTY_ROOM

public static final int DIRTY_ROOM
See Also:
Constant Field Values

DIRTY_ROOM3D

public static final int DIRTY_ROOM3D
See Also:
Constant Field Values

DIRTY_SCORE

public static final int DIRTY_SCORE
See Also:
Constant Field Values

DIRTY_TIME

public static final int DIRTY_TIME
See Also:
Constant Field Values
Constructor Detail

Ut

public Ut()
Method Detail

post

public static void post(java.lang.String s)

min

public static int min(int a,
                      int b)

min

public static float min(float a,
                        float b)

min

public static double min(double a,
                         double b)

min

public static int min(int a,
                      int b,
                      int c)
Returns the smaller of three int values.


min

public static float min(float a,
                        float b,
                        float c)
Returns the smaller of three float values.


max

public static int max(int a,
                      int b)

max

public static float max(float a,
                        float b)

max

public static double max(double a,
                         double b)

max

public static int max(int a,
                      int b,
                      int c)
Returns the greater of three int values.


max

public static float max(float a,
                        float b,
                        float c)
Returns the greater of three float values.


mean

public static int mean(int a,
                       int b)

mean

public static float mean(float a,
                         float b)

mean

public static double mean(double a,
                          double b)

mod

public static int mod(int value,
                      int modulo)

mod

public static float mod(float value,
                        float modulo)

mod

public static double mod(double value,
                         double modulo)

modabs

public static int modabs(int value,
                         int modulo)

clipL

public static int clipL(int value,
                        int lowlim)
Returns the greater of two int values.


clipL

public static float clipL(float value,
                          float lowlim)
Returns the greater of two float values.


clipU

public static int clipU(int value,
                        int uplim)
Returns the smaller of two int values.


clipU

public static float clipU(float value,
                          float uplim)

clip

public static int clip(int value,
                       int lowlim,
                       int uplim)

clip

public static double clip(double value,
                          double lowlim,
                          double uplim)

clip

public static float clip(float value,
                         float lowlim,
                         float uplim)

modSigned

public static int modSigned(int value,
                            int modulo)

modSigned

public static float modSigned(float value,
                              float modulo)

modSigned

public static double modSigned(double value,
                               double modulo)

clipL

public static double clipL(double value,
                           double lowlim)

clipU

public static double clipU(double value,
                           double uplim)

isPair

public static boolean isPair(int i)

interpol

public static int interpol(int f1,
                           int f2,
                           double step)

interpol

public static float interpol(float f1,
                             float f2,
                             double step)

interpol

public static double interpol(double f1,
                              double f2,
                              double step)

between

public static boolean between(int v,
                              int l,
                              int u)

between

public static boolean between(float v,
                              float l,
                              float u)

between

public static boolean between(double v,
                              double l,
                              double u)

intToDate

public static java.lang.String intToDate(int dateNum)
date en centieme de secondes


msToHMSMS

public static java.lang.String msToHMSMS(float ms)

readInt4

public static int readInt4(byte[] array,
                           int offset)

readUnsignedByte

public static int readUnsignedByte(byte[] array,
                                   int offset)

readInt1

public static int readInt1(byte[] array,
                           int offset)

readInt2

public static int readInt2(byte[] array,
                           int offset)

readInt3

public static int readInt3(byte[] array,
                           int offset)

readString

public static java.lang.String readString(byte[] array,
                                          int offset,
                                          int charNum)

alert

public static void alert(java.lang.String title,
                         java.lang.String message)

dir

public static java.lang.String dir(java.lang.String s)

print

public static void print(java.lang.String str)