Examples of dimension()


Examples of cc.redberry.core.combinatorics.Symmetry.dimension()

            //iterating from 1 because zero'th element is always identity symmetry
            for (k = 1; k < basis.size(); ++k) {
                c = new int[data.length];
                Symmetry s = basis.get(k);
                for (j = 0; j < data.length; ++j)
                    if (cosort[j] < position || cosort[j] >= position + s.dimension())
                        c[j] = j;
                    else
                        c[j] = cosortInv[s.newIndexOf(cosort[j] - position) + position];
                resultingSymmetries.addUnsafe(UnsafeCombinatorics.createUnsafe(c, s.isAntiSymmetry()));
            }
View Full Code Here

Examples of cc.redberry.core.combinatorics.Symmetry.dimension()

            //iterating from 1 because zero'th element is always identity symmetry
            for (k = 1; k < basis.size(); ++k) {
                c = new int[data.length];
                Symmetry s = basis.get(k);
                for (j = 0; j < data.length; ++j)
                    if (cosort[j] < position || cosort[j] >= position + s.dimension())
                        c[j] = j;
                    else
                        c[j] = cosortInv[s.newIndexOf(cosort[j] - position) + position];
                resultingSymmetries.addUnsafe(UnsafeCombinatorics.createUnsafe(c, s.isAntiSymmetry()));
            }
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.dimension()

    if (ogcGeometry == null) {
      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    resultInt.set(ogcGeometry.dimension());
    return resultInt;
  }

}
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.dimension()

    if (ogcGeometry == null) {
      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    resultInt.set(ogcGeometry.dimension());
    return resultInt;
  }

}
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.dimension()

    OGCGeometry g1 = OGCGeometry.fromText(wk2);
    g0.setSpatialReference(null);
    g1.setSpatialReference(null);
    OGCGeometry rslt = g0.intersection(g1);
    assertTrue(rslt != null);
    assertTrue(rslt.dimension() == 1);
    assertTrue(rslt.geometryType().equals("LineString"));
    String s = rslt.asText();
  }

  @Test
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.dimension()

    OGCGeometry g1 = OGCGeometry.fromText(wk2);
    g0.setSpatialReference(SpatialReference.create(4326));
    g1.setSpatialReference(SpatialReference.create(4326));
    OGCGeometry rslt = g0.intersection(g1);
    assertTrue(rslt != null);
    assertTrue(rslt.dimension() == 0);
    assertTrue(rslt.geometryType().equals("Point"));
    assertTrue(rslt.esriSR.getID() == 4326);
    String s = rslt.asText();
  }
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.dimension()

  @Test
  public void testMultiPointSinglePoint() {
    String wkt = "multipoint((1 0))";
    OGCGeometry g0 = OGCGeometry.fromText(wkt);
    assertTrue(g0.dimension() == 0);
    String gt = g0.geometryType();
    assertTrue(gt.equals("MultiPoint"));
    OGCMultiPoint mp = (OGCMultiPoint)g0;
    assertTrue(mp.numGeometries() == 1);
    OGCGeometry p = mp.geometryN(0);
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.dimension()

  @Test
  public void testIntersection() {
    OGCGeometry g = OGCGeometry.fromText("LINESTRING(0 0, 10 10)");
    OGCGeometry g2 = OGCGeometry.fromText("LINESTRING(10 0, 0 10)");
    OGCGeometry u = g.intersection(g2);
    assertTrue(u.dimension() == 0);
    String s = u.asText();
    assertTrue(u.equals(OGCGeometry.fromText("POINT(5 5)")));
  }

  @Test
View Full Code Here

Examples of com.sun.javadoc.Type.dimension()

    return text;
  }

  public String getOutputTypeString() {
    Type returnType = getOutputType();
    return returnType.qualifiedTypeName() + returnType.dimension();
  }

  public String getOutputDoc(int index) {
    if (isOutputWrapped()) {
      String text = returnWrappedTags[index].text();
View Full Code Here

Examples of com.sun.javadoc.Type.dimension()

    private FieldRelationInfo getFieldRelationInfo(FieldDoc field) {
  Type type = field.type();
  if(type.isPrimitive() || type instanceof WildcardType || type instanceof TypeVariable)
      return null;
 
  if (type.dimension().endsWith("[]")) {
      return new FieldRelationInfo(type.asClassDoc(), true);
  }
 
  Options opt = optionProvider.getOptionsFor(type.asClassDoc());
  if (opt.matchesCollPackageExpression(type.qualifiedTypeName())) {
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.