public class Toolkit extends Object
Some tools.
© 2002 Christian Treber, [email protected]
Modifier and Type | Field and Description |
---|---|
static double |
HALFPI |
static double |
PI |
static double |
TWOPI |
Constructor and Description |
---|
Toolkit() |
Modifier and Type | Method and Description |
---|---|
static double |
degsToRads(double pDegrees) |
static double |
fmod(double pValue,
double pMod)
Verified.
|
static double |
fmod(double pValue,
double pMinValue,
double pMaxValue)
Examples: min -2, max 2: range 4
value 1: lFact = 0
value 3: lFact = 1, value -1
value 9: lFact = 2, value 1
value -3: lFact = -1, value 1
|
static String |
intelligentCapitalize(String pText)
Capitalize String.
|
static double |
limitRads(double x)
Force an angular value into the range [-PI, +PI]
|
static double |
radsToDegs(double pRadians) |
public static final double TWOPI
public static final double PI
public static final double HALFPI
public static double degsToRads(double pDegrees)
public static double radsToDegs(double pRadians)
public static double limitRads(double x)
public static double fmod(double pValue, double pMod)
Verified.
public static double fmod(double pValue, double pMinValue, double pMaxValue)
Examples: min -2, max 2: range 4
Copyright © 2017. All Rights Reserved.