Пример #1
0
 /**
  * A helper to make creating a SpringConfig easier with values mapping to the Origami values.
  *
  * @param qcTension tension as defined in the Quartz Composition
  * @param qcFriction friction as defined in the Quartz Composition
  * @return a SpringConfig that maps to these values
  */
 public static SpringConfig fromOrigamiTensionAndFriction(double qcTension, double qcFriction) {
   return new SpringConfig(
       OrigamiValueConverter.tensionFromOrigamiValue(qcTension),
       OrigamiValueConverter.frictionFromOrigamiValue(qcFriction));
 }
Пример #2
0
 public static SpringConfig fromOrigamiTensionAndFriction(double d, double d2) {
   return new SpringConfig(
       OrigamiValueConverter.tensionFromOrigamiValue(d),
       OrigamiValueConverter.frictionFromOrigamiValue(d2));
 }