Examples of sizeX()


Examples of crazypants.render.BoundingBox.sizeX()

          float minU = texture.getMinU();
          float maxU = texture.getMaxU();
          float minV = texture.getMinV();
          float maxV = texture.getMaxV();

          float sideScale = Math.max(bb.sizeX(), bb.sizeY()) * 2 / 16f;
          sideScale = Math.max(sideScale, bb.sizeZ() * 2 / 16f);
          float width = Math.min(bb.sizeX(), bb.sizeY()) * 15f / 16f;

          List<Vertex> corners = bb.getCornersWithUvForFace(d, minU, maxU, minV, maxV);
          moveEdgeCorners(corners, vDir, width);
View Full Code Here

Examples of crazypants.render.BoundingBox.sizeX()

          float minV = texture.getMinV();
          float maxV = texture.getMaxV();

          float sideScale = Math.max(bb.sizeX(), bb.sizeY()) * 2 / 16f;
          sideScale = Math.max(sideScale, bb.sizeZ() * 2 / 16f);
          float width = Math.min(bb.sizeX(), bb.sizeY()) * 15f / 16f;

          List<Vertex> corners = bb.getCornersWithUvForFace(d, minU, maxU, minV, maxV);
          moveEdgeCorners(corners, vDir, width);
          moveEdgeCorners(corners, component.dir.getOpposite(), sideScale);
          for (Vertex c : corners) {
View Full Code Here

Examples of crazypants.render.BoundingBox.sizeX()

          float minU = texture.getMinU();
          float maxU = texture.getMaxU();
          float minV = texture.getMinV();
          float maxV = texture.getMaxV();

          float sideScale = Math.max(bb.sizeX(), bb.sizeY()) * 2 / 16f;
          sideScale = Math.max(sideScale, bb.sizeZ() * 2 / 16f);
          float width = Math.min(bb.sizeX(), bb.sizeY()) * 15f / 16f;

          List<Vertex> corners = bb.getCornersWithUvForFace(d, minU, maxU, minV, maxV);
          moveEdgeCorners(corners, vDir, width);
View Full Code Here

Examples of crazypants.render.BoundingBox.sizeX()

          float minV = texture.getMinV();
          float maxV = texture.getMaxV();

          float sideScale = Math.max(bb.sizeX(), bb.sizeY()) * 2 / 16f;
          sideScale = Math.max(sideScale, bb.sizeZ() * 2 / 16f);
          float width = Math.min(bb.sizeX(), bb.sizeY()) * 15f / 16f;

          List<Vertex> corners = bb.getCornersWithUvForFace(d, minU, maxU, minV, maxV);
          moveEdgeCorners(corners, vDir, width);
          moveEdgeCorners(corners, component.dir.getOpposite(), sideScale);
          for (Vertex c : corners) {
View Full Code Here

Examples of crazypants.render.BoundingBox.sizeX()

    nonUniformScale.z = 0.8 * (1 - Math.abs(nonUniformScale.z));

    BoundingBox bb = CORE_BOUNDS;
    bb = bb.scale(nonUniformScale.x, nonUniformScale.y, nonUniformScale.z);

    double offsetFromEnd = Math.min(bb.sizeX(), bb.sizeY());
    offsetFromEnd = Math.min(offsetFromEnd, bb.sizeZ());
    offsetFromEnd = Math.max(offsetFromEnd, 0.075);
    double transMag = 0.5 - (offsetFromEnd * 1.2);

    Vector3d trans = ForgeDirectionOffsets.forDirCopy(dir);
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ.sizeX()

   
    AxisAlignedBoundingBoxXZ gridBounds = dataBoundary.pad(10);
   
    intersectionGrid = new IntersectionGrid<MapElement>(
        gridBounds,
        gridBounds.sizeX() / 50,
        gridBounds.sizeZ() / 50);
   
  }
 
  @Override
View Full Code Here

Examples of org.osm2world.core.math.VectorGridXZ.sizeX()

    VectorGridXZ posGrid = new VectorGridXZ(
        dataBounds.pad(POINT_GRID_DIST), POINT_GRID_DIST);
   
    /* create a grid of nodes (leaving points within the future patches blank) */
   
    MapNode[][] nodeGrid = new MapNode[posGrid.sizeX()][posGrid.sizeZ()];
   
    for (int x = 0; x < posGrid.sizeX(); x++) {
      for (int z = 0; z < posGrid.sizeZ(); z++) {
       
        if (x % PATCH_SIZE_POINTS == 0 || x == posGrid.sizeX() - 1
View Full Code Here

Examples of org.osm2world.core.math.VectorGridXZ.sizeX()

   
    /* create a grid of nodes (leaving points within the future patches blank) */
   
    MapNode[][] nodeGrid = new MapNode[posGrid.sizeX()][posGrid.sizeZ()];
   
    for (int x = 0; x < posGrid.sizeX(); x++) {
      for (int z = 0; z < posGrid.sizeZ(); z++) {
       
        if (x % PATCH_SIZE_POINTS == 0 || x == posGrid.sizeX() - 1
            || z % PATCH_SIZE_POINTS == 0 || z == posGrid.sizeZ() - 1) {
         
View Full Code Here

Examples of org.osm2world.core.math.VectorGridXZ.sizeX()

    MapNode[][] nodeGrid = new MapNode[posGrid.sizeX()][posGrid.sizeZ()];
   
    for (int x = 0; x < posGrid.sizeX(); x++) {
      for (int z = 0; z < posGrid.sizeZ(); z++) {
       
        if (x % PATCH_SIZE_POINTS == 0 || x == posGrid.sizeX() - 1
            || z % PATCH_SIZE_POINTS == 0 || z == posGrid.sizeZ() - 1) {
         
          VectorXZ pos = posGrid.get(x, z);
         
          MapNode mapNode = new MapNode(pos, EMPTY_SURFACE_NODE);
View Full Code Here

Examples of org.osm2world.core.math.VectorGridXZ.sizeX()

     
      AxisAlignedBoundingBoxXZ bound = map.getDataBoundary();
     
      VectorGridXZ sampleGrid = new VectorGridXZ(bound, SAMPLE_DIST);
     
      VectorXYZ[][] samples = new VectorXYZ[sampleGrid.sizeX()][sampleGrid.sizeZ()];
     
      long startTimeMillis = System.currentTimeMillis();
     
      for (int x = 0; x < sampleGrid.sizeX(); x++) {
        for (int z = 0; z < sampleGrid.sizeZ(); z++) {
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.