Examples of normalize()


Examples of cofh.repack.codechicken.lib.vec.Vector3.normalize()

      Vector3 new_n = new Vector3();
      for (Vector3 n : e.normals) {
        new_n.add(n);
      }

      new_n.normalize();
      for (Vector3 n : e.normals) {
        n.set(new_n);
      }
    }
View Full Code Here

Examples of com.android.ide.common.resources.configuration.FolderConfiguration.normalize()

            if (folderConfiguration == null) {
                return null;
            }

            // normalize it
            folderConfiguration.normalize();

            // get the qualifier portion from the folder config.
            // the returned string starts with "-" so we remove that.
            fd.qualifiers = folderConfiguration.getUniqueKey().substring(1);
View Full Code Here

Examples of com.apitrary.api.response.normalized.Normalizer.normalize()

  @Override
  protected <T> Response<T> deserialize(String response, Request<T> request) {
    Response<T> target = RequestUtil.getInstanceOfParameterizedType(request);

    Normalizer normalizer = NormalizationUtil.getNormalizer(target);
    response = normalizer.normalize(response);

    target.setResult(response);
    return target;
  }
}
View Full Code Here

Examples of com.forgeessentials.util.vector.Vector2.normalize()

  }

  public static Vector2 getDirectionVector(Point center, EntityPlayerMP player)
  {
    Vector2 vecp = new Vector2(center.getX() - player.posX, center.getZ() - player.posZ);
    vecp.normalize();
    vecp.multiply(-1);
    return vecp;
  }

  public static int getDistanceRound(Point center, EntityPlayer player)
View Full Code Here

Examples of com.foundationdb.sql.compiler.BooleanNormalizer.normalize()

        ASTStatementLoader astStatementLoader = new ASTStatementLoader();
        AISBinder binder = new AISBinder(ais, table.getName().getSchemaName());
        try {
            binder.bind(stmt);
            BooleanNormalizer booleanNormalizer = new BooleanNormalizer(parser);
            stmt = booleanNormalizer.normalize(stmt);
            SubqueryFlattener subqueryFlattener = new SubqueryFlattener(parser);
            stmt = subqueryFlattener.flatten((DMLStatementNode)stmt);
        } catch (StandardException ex) {
            throw new SQLParserInternalException(ex);
        }
View Full Code Here

Examples of com.google.gerrit.server.workflow.FunctionState.normalize()

      final PatchSetApproval a = mine.get(want.getParentKey());
      final short o = a.getValue();
      a.setValue(want.get());
      a.cache(change);
      if (!ApprovalCategory.SUBMIT.equals(a.getCategoryId())) {
        functionState.normalize(types.byId(a.getCategoryId()), a);
      }
      if (want.get() != a.getValue()) {
        throw new InvalidChangeOperationException(
            types.byId(a.getCategoryId()).getCategory().getLabelName()
            + "=" + want.get() + " not permitted");
View Full Code Here

Examples of com.ibm.icu.text.Normalizer2.normalize()

public class TestICUNormalizer2CharFilter extends BaseTokenStreamTestCase {

  public void testNormalization() throws IOException {
    String input = "ʰ㌰゙5℃№㈱㌘,バッファーの正規化のテスト.㋐㋑㋒㋓㋔カキクケコザジズゼゾg̈각/각நிเกषिchkʷक्षि";
    Normalizer2 normalizer = Normalizer2.getInstance(null, "nfkc_cf", Normalizer2.Mode.COMPOSE);
    String expectedOutput = normalizer.normalize(input);

    CharFilter reader = new ICUNormalizer2CharFilter(new StringReader(input), normalizer);
    char[] tempBuff = new char[10];
    StringBuilder output = new StringBuilder();
    while (true) {
View Full Code Here

Examples of com.ipeirotis.gal.core.ConfusionMatrix.normalize()

      // Double currentCount = eval_cm.getErrorRate(correctCategory,
      // assignedCategory);
      eval_cm.addError(correctCategory, assignedCategory, 1.0);
    }
    eval_cm.normalize();
    w.setEvalConfusionMatrix(eval_cm);
  }
 

  public Integer countGoldTests(Set<AssignedLabel> labels) {
View Full Code Here

Examples of com.itextpdf.text.Rectangle.normalize()

        if ( outRect.isEmpty() ) { // no intersection
            return null;
        }

        Rectangle output = new Rectangle((float) outRect.getX(), (float) outRect.getY(), (float) (outRect.getX() + outRect.getWidth()), (float) (outRect.getY() + outRect.getHeight()));
        output.normalize();
        return output;
    }

//  [U2] take care of empty pages
View Full Code Here

Examples of com.jme.math.Vector3f.normalize()

        Matrix4f mat = new Matrix4f();
        Vector3f axisX = new Vector3f();
        Vector3f axisY = new Vector3f();
        Vector3f axisZ = new Vector3f(direction);
        axisZ.negate();
        axisZ.normalize();

        axisX.cross(up, axisZ);
        axisX.normalize();

        axisY.cross(axisZ, axisX);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.