Examples of normalize()


Examples of org.wikipediacleaner.api.constants.EnumCaseSensitiveness.normalize()

    if ((categories == null) || (categories.isEmpty())) {
      return false;
    }
    Map<String, List<PageElementCategory>> groupedCategories = new HashMap<String, List<PageElementCategory>>();
    for (PageElementCategory category : categories) {
      String name = sensitive.normalize(category.getName());
      List<PageElementCategory> groupCategory = groupedCategories.get(name);
      if (groupCategory == null) {
        groupCategory = new ArrayList<PageElementCategory>();
        groupedCategories.put(name, groupCategory);
      }
View Full Code Here

Examples of processing.core.PVector.normalize()

    //Into hypotenuse
    PVector pos5 = new PVector(20,1);
    HCircle c4 = new HCircle(pos5,12);
    PVector projectV4 = p1.projectionVector(c4);
    PVector result4 = new PVector(10,1);
    result4.normalize();
    result4.mult((float)(12-Math.sqrt(101)));
    assertEquals(projectV4.x,result4.x,1e-6);
    assertEquals(projectV4.y,result4.y,1e-6);
   
    //Test with polygon that is not at (0,0) but rather (10,10)
View Full Code Here

Examples of railo.runtime.img.vecmath.Vector3f.normalize()

         
          if (m1 != -2 && m4 != -2) {
            v1.x = -1.0f; v1.y = 0.0f; v1.z = m1;
            v2.x = 0.0f; v2.y = 1.0f; v2.z = m4;
            n.cross(v1, v2);
            n.normalize();
            if (n.z < 0.0)
              n.z = -n.z;
            normal.add(n);
            count++;
          }
View Full Code Here

Examples of reportgen.prototype.queryresults.ResultsRow.normalize()

        resultRows.add(row);
        row.initSummRow(data.getModes());
        for (int i = 1; i < rows.size(); i++) {
            row.merge(rows.get(i), null, data.getModes());
        }
        row.normalize(data.getModes());
        return resultRows;
    }

    /**
     * Creates table from specified visible columns
View Full Code Here

Examples of soc.qase.tools.vecmath.Vector3f.normalize()

/*-------------------------------------------------------------------*/
  private Vector3f getEndpoint(Vector3f start, Vector3f dir, float maxDist)
  {
    Vector3f end = new Vector3f(dir);

    end.normalize();
    end.scale(maxDist);
    end.add(start);

    return end;
  }
View Full Code Here

Examples of spiderman.plugin.util.DefaultLinkNormalizer.normalize()

    //resolveUrl
    String hostUrl = new StringBuilder("http://").append(new URL(task.site.getUrl()).getHost()).append("/").toString();
    List<String> newUrls = new ArrayList<String>(urls.size());
    for (String url : urls) {
      LinkNormalizer ln = new DefaultLinkNormalizer(hostUrl);
      String newUrl = ln.normalize(url);
//      String newUrl = URLCanonicalizer.getCanonicalURL(ln.normalize(url));
      if (newUrl.startsWith("mailto:"))
        continue;
      //去重复
      if (newUrls.contains(newUrl))
View Full Code Here

Examples of spiderman.plugin.util.LinkNormalizer.normalize()

    //resolveUrl
    String hostUrl = new StringBuilder("http://").append(new URL(task.site.getUrl()).getHost()).append("/").toString();
    List<String> newUrls = new ArrayList<String>(urls.size());
    for (String url : urls) {
      LinkNormalizer ln = new DefaultLinkNormalizer(hostUrl);
      String newUrl = ln.normalize(url);
//      String newUrl = URLCanonicalizer.getCanonicalURL(ln.normalize(url));
      if (newUrl.startsWith("mailto:"))
        continue;
      //去重复
      if (newUrls.contains(newUrl))
View Full Code Here

Examples of systole.domain.signals.Segment.normalize()

        int initOfActalSegment = this.obtainTheStartOfSegment(rawSignal,
                initPos);
        int endOfActualSegment = this.obtainTheEndOfSegment(rawSignal, initOfActalSegment + this.maxLengthOfSegment);//initOfActalSegment+this.maxLengthOfSegment;
        Segment segment = rawSignal.subSegment(initOfActalSegment,
                endOfActualSegment);       
        segment = segment.normalize();
        int posOfMax = segment.getPosOfMax();
        int fiftyPos = segment.looksPositionOfNearestValueOnSubSegment(fifty, 0, posOfMax);
        int dif = fiftyPos - 10;
        if (dif > 0) {
            segment = segment.subSegment(dif, endOfActualSegment);
View Full Code Here

Examples of thaumcraft.codechicken.lib.vec.Vector3.normalize()

  public static void setEntityMotionFromVector(Entity entity, Vector3 originalPosVector, float modifier) {
    Vector3 entityVector = Vector3.fromEntityCenter(entity);
    Vector3 finalVector = originalPosVector.copy().subtract(entityVector);

    if (finalVector.mag() > 1)
      finalVector.normalize();

    entity.motionX = finalVector.x * modifier;
    entity.motionY = finalVector.y * modifier;
    entity.motionZ = finalVector.z * modifier;
  }
 
View Full Code Here

Examples of toxi.geom.Vec2D.normalize()

          Vec2D tempDir = posPerp.copy();// currentSpline.getPerpendicular(percentVec.x);

          if (tempDir == null)
            break;

          tempDir = tempDir.normalize();

          topIntersect = intersectX.add(new Vec2D(0, splineWidth));
          bottomIntersect = intersectX.add(new Vec2D(0, -splineWidth));

          // Switch what side slots are added to
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.