Class Toolkit
java.lang.Object
zext.plantuml.com.ctreber.acearth.util.Toolkit
Some tools.
© 2002 Christian Treber, ct@ctreber.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubledegsToRads(double pDegrees) static doublefmod(double pValue, double pMod) Verified.static doublefmod(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 1static StringintelligentCapitalize(String pText) Capitalize String.static doublelimitRads(double x) Force an angular value into the range [-PI, +PI]static doubleradsToDegs(double pRadians)
-
Field Details
-
TWOPI
public static final double TWOPI- See Also:
-
PI
public static final double PI- See Also:
-
HALFPI
public static final double HALFPI- See Also:
-
-
Constructor Details
-
Toolkit
public Toolkit()
-
-
Method Details
-
degsToRads
public static double degsToRads(double pDegrees) -
radsToDegs
public static double radsToDegs(double pRadians) -
limitRads
public static double limitRads(double x) Force an angular value into the range [-PI, +PI] -
fmod
public static double fmod(double pValue, double pMod) Verified.
-
fmod
public 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
-
intelligentCapitalize
Capitalize String. Uppercase words smaller/equal than 3 chars, lowercase defined exceptions. Capitalize within word after '.' and '-'. Capitalize all others.
-