Examples of Vect


Examples of forestry.core.utils.Vect

    return area;
  }

  protected AxisAlignedBB getBounding(IBeeGenome genome, IBeeHousing housing, float modifier) {
    int[] areaAr = genome.getTerritory();
    Vect area = new Vect(areaAr[0], areaAr[1], areaAr[2]).multiply(modifier);
    Vect offset = new Vect(-Math.round(area.x / 2), -Math.round(area.y / 2), -Math.round(area.z / 2));

    // Radioactivity hurts players and mobs
    Vect min = new Vect(housing.getXCoord() + offset.x, housing.getYCoord() + offset.y, housing.getZCoord() + offset.z);
    Vect max = new Vect(housing.getXCoord() + offset.x + area.x, housing.getYCoord() + offset.y + area.y, housing.getZCoord() + offset.z + area.z);

    return AxisAlignedBB.getBoundingBox(min.x, min.y, min.z, max.x, max.y, max.z);
  }
View Full Code Here

Examples of org.nlogo.api.Vect

    double zOff = w.minPzcor() + ((w.maxPzcor() - w.minPzcor()) / 2.0);
    ozcor(zOff + (StrictMath.max
        (world.worldWidth(),
         StrictMath.max(world.worldHeight(), w.worldDepth())) * 2));

    rotationPoint = new Vect(oxcor(), oycor(), zOff);
    right = new Vect(1, 0, 0);
    forward = new Vect(0, 0, 1);
  }
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.