Examples of normalize()


Examples of com.vividsolutions.jts.geom.Point.normalize()

    junit.textui.TestRunner.main(testCaseName);
  }

  public void testNormalizePoint() throws Exception {
    Point point = (Point) reader.read("POINT (30 30)");
    point.normalize();
    assertEquals(new Coordinate(30, 30), point.getCoordinate());
  }

  public void testNormalizeEmptyPoint() throws Exception {
    Point point = (Point) reader.read("POINT EMPTY");
View Full Code Here

Examples of com.vividsolutions.jts.geom.Polygon.normalize()

    assertEqualsExact(expectedValue, l);
  }

  public void testNormalizeEmptyPolygon() throws Exception {
    Polygon actualValue = (Polygon) reader.read("POLYGON EMPTY");
    actualValue.normalize();
    Polygon expectedValue = (Polygon) reader.read("POLYGON EMPTY");
    assertEqualsExact(expectedValue, actualValue);
  }

  public void testNormalizePolygon1() throws Exception {
View Full Code Here

Examples of com.volantis.mcs.dom.StyledDOMTester.normalize()

        String expected =
                "<BLOCK>" +
                    "--------" +
                "</BLOCK>";
        assertEquals("Wrong output in doHorizontalRule method",
                tester.normalize(expected), output);
    }

    protected void checkFragmentLinkRendererContext(
            FragmentLinkRendererContext context) {
        assertTrue(context instanceof WMLFragmentLinkRendererContext);
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.normalizer.PropertiesNormalizer.normalize()

        // Resolve any policy references, this is done for elements, pseudo
        // elements and pseudo classes.
        for (int i = 0; i < resolvers.length; i++) {
            PropertiesNormalizer resolver = resolvers[i];
            resolver.normalize(inputValues);
        }

        // Only normalize the properties when there is no pseudo class present.
        // This is because while a property may have no effect on its own, it
        // may have an effect when combined with other pseudo classes. e.g.
View Full Code Here

Examples of com.volantis.mcs.runtime.debug.StrictStyledDOMHelper.normalize()

                        replacementPseudoElementFactory);
        transformer.transform(null,
                document);

        String actualXML = helper.render(document);
        String canonicalExpectedXML = helper.normalize(expectedXML);
        assertXMLEquals("Actual XML does not match expected XML",
                canonicalExpectedXML,
                actualXML);
    }
View Full Code Here

Examples of comum.util.XmlBuilder.normalize()

    nomeRelatorio = "REVIS�O DO PPA " + periodoIni + "-" + periodoFim + " - PPA ATUALIZADO";
   
    String mesAnoGeracao = Data.getNomeMesExtenso(Data.getMes(Data.getDataAtual()) + 1).toUpperCase() + " " + String.valueOf(Data.getAno(Data.getDataAtual()));

    builder.addNode("relatorio",
        " titulo=\"" + builder.normalize(titulo) + "\"" +
        " capa=\"" + builder.normalize(String.valueOf(paginaInicial)) + "\"" +
        " paginaInicial=\"" + builder.normalize(String.valueOf(paginaInicial+1)) + "\"" +
        " nomeRelatorio=\"" + builder.normalize(nomeRelatorio) + "\"" +
        " nomeRelatorioRodape=\"" + builder.normalize(valorRelatorio) + "\"" +
        " tipo=\"" + builder.normalize(tipoRelatorio) + "\"" +
View Full Code Here

Examples of crazypants.vecmath.Vector3d.normalize()

        }
        //need to step
        Vector3d sv = new Vector3d(start.xCoord, start.yCoord, start.zCoord);
        Vector3d rayDir = new Vector3d(target.xCoord, target.yCoord, target.zCoord);
        rayDir.sub(sv);
        rayDir.normalize();
        rayDir.add(sv);
        return canBlinkTo(bc, w, Vec3.createVectorHelper(rayDir.x, rayDir.y, rayDir.z), target);

      } else {
        return false;
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.math.linearalgebra.Vector.normalize()

  protected double angle(NumberVector<?, ?> v1, NumberVector<?, ?> v2) {
    if(v1 instanceof SparseNumberVector<?, ?> && v2 instanceof SparseNumberVector<?, ?>) {
      return angleSparse((SparseNumberVector<?, ?>) v1, (SparseNumberVector<?, ?>) v2);
    }
    Vector m1 = v1.getColumnVector();
    m1.normalize();
    Vector m2 = v2.getColumnVector();
    m2.normalize();
    return m1.transposeTimes(m2);
  }
View Full Code Here

Examples of eas.math.geometry.Polygon2D.normalize()

            r2 -= 0.004;
        }

        bez2.add(new Vector2D(742, 580));

        bez2 = bez2.normalize(GlobalVariables.getPrematureParameters());
       
        dicken2 = new ArrayList<Double>(bez2.size());
        int p1 = 2000;
        int p2 = 330;
       
View Full Code Here

Examples of edu.gslis.textrepresentation.FeatureVector.normalize()

    Iterator<String> qTerms = query.getFeatureVector().iterator();
    while(qTerms.hasNext()) {
      String term = qTerms.next();
      temp.addTerm(term.toLowerCase(), query.getFeatureVector().getFeatureWeight(term));
    }
    temp.normalize();;
    query.setFeatureVector(temp);
   
    System.err.println(query.getTitle()+": "+queryText);
   
    // perform search
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.