Codota Logo
Utils
Code IndexAdd Codota to your IDE (free)

How to use
Utils
in
org.jflux.api.common.rk.utils

Best Java code snippets using org.jflux.api.common.rk.utils.Utils (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.jflux/org.jflux.api.common.rk

/**
 * Returns the decimal value of a two character hex string.
 * @param xx two character hex string [0-9a-fA-F]
 * @return an value 0-255
 */
public static int readHex(String xx){
  int high = readHex(xx.charAt(0));
  high *= 16;
  int low = readHex(xx.charAt(1));
  return high+low;
}
/**
origin: org.cogchar/org.cogchar.bundle.bind.mechio

protected void updateConfig(BoneJointConfig bjc, boolean flag_hardResetGoalPosToDefault) { 
  double defPosVal = Utils.bound(bjc.myNormalDefaultPos, 0.0, 1.0);
  myDefaultPosNorm = new NormalizedDouble(defPosVal);
  myBoneProjectionRanges =  bjc.myProjectionRanges;
  List<BoneProjectionRange> projRanges = getBoneRotationRanges();
  if(projRanges == null || projRanges.isEmpty()){
    myNormalizableRange = NormalizableRange.NORMALIZED_RANGE;
  } else {
    BoneProjectionRange range = projRanges.get(0);
    double min = range.getMinPosAngRad();
    double max = range.getMaxPosAngRad();
    myNormalizableRange = new DoubleRange(min, max);
  }
  if (flag_hardResetGoalPosToDefault) {
      hardResetGoalPosToDefault();
  }
}
private void hardResetGoalPosToDefault() { 
origin: org.jflux/org.jflux.extern.utils.apache_commons_configuration.rk

  return Color.decode(colStr);
}else if(len == 4){
  int r = Utils.readHex(colStr.charAt(1))*17;
  int g = Utils.readHex(colStr.charAt(1))*17;
  int b = Utils.readHex(colStr.charAt(1))*17;
  int a = Utils.readHex(colStr.charAt(1))*17;
  return new Color(r, g, b, a);
}else{
  int r = Utils.readHex(colStr.substring(1, 3));
  int g = Utils.readHex(colStr.substring(3, 5));
  int b = Utils.readHex(colStr.substring(5, 7));
  int a = Utils.readHex(colStr.substring(7, 9));
  return new Color(r, g, b, a);
org.jflux.api.common.rk.utilsUtils

Javadoc

Miscellaneous utility methods.

Most used methods

  • readHex
    Returns the decimal value of a two character hex string.
  • bound
    Ensures: low <= n <= high

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now