Examples of CellStatus


Examples of com.barrybecker4.simulation.liquid.model.CellStatus

     */
    private double advectParticle(double timeStep, Particle particle) {

        int i = (int) Math.floor(particle.x);
        int j = (int) Math.floor(particle.y);
        CellStatus status = grid.getCell(i, j).getStatus();
        double magnitude = 0;

        if ( status == CellStatus.FULL || status == CellStatus.SURFACE || status == CellStatus.ISOLATED ) {

            magnitude = advectWaterParticle(timeStep, particle, i, j);
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.