Here you can find the source of average(double x1, double x2)
public static double average(double x1, double x2)
//package com.java2s; /*/* ww w .j av a2s.c om*/ * casim, cellular automaton simulation for multi-destination pedestrian * crowds; see www.cacrowd.org * Copyright (C) 2016-2017 CACrowd and contributors * * This file is part of casim. * casim is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * */ public class Main { public static double average(double x1, double x2) { return (x1 + x2) / 2; } }