File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Misc.h
Go to the documentation of this file.
1 #ifndef __Misc_H
2 #define __Misc_H
3 /*
4 *******************************************************************************************************
5 Copyright (c) 2013, Christopher John Topping, Aarhus University
6 All rights reserved.
7 
8 Redistribution and use in source and binary forms, with or without modification, are permitted provided
9 that the following conditions are met:
10 
11 Redistributions of source code must retain the above copyright notice, this list of conditions and the
12 following disclaimer.
13 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
14 the following disclaimer in the documentation and/or other materials provided with the distribution.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
17 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
18 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
19 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
21 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 ********************************************************************************************************
25 */
26 
33 public:
36  ;
37  }
39  virtual ~ALMaSS_MathFuncs() {
40  ;
41  };
43  int CalcDistPythagoras( int a_x, int a_y, int a_x1, int a_y1 );
44 
46  int CalcDistPythagorasApprox( int a_x, int a_y, int a_x1, int a_y1 );
47 };
48 #endif
CfgStr
String configurator entry class.
Definition: Configurator.h:173
ALMaSS_MathFuncs::~ALMaSS_MathFuncs
virtual ~ALMaSS_MathFuncs()
ALMaSS_MathFuncs deconstructor.
Definition: Misc.h:39
ls.h
cfg_dumpvegjanfile
CfgStr cfg_dumpvegjanfile
ALMaSS_MathFuncs
ALMaSS_MathFuncs constructor.
Definition: Misc.h:28
cfg_dumpvegjan
CfgBool cfg_dumpvegjan
cfg_dumpvegjune
CfgBool cfg_dumpvegjune
CfgBool
Bool configurator entry class.
Definition: Configurator.h:155
cfg_dumpvegjunefile
CfgStr cfg_dumpvegjunefile
Map_cfg.h
ALMaSS_MathFuncs::CalcDistPythagorasApprox
int CalcDistPythagorasApprox(int a_x, int a_y, int a_x1, int a_y1)
Calculate distance using the Pythagoras approximation.
Definition: Misc.cpp:48
ALMaSS_MathFuncs::CalcDistPythagoras
int CalcDistPythagoras(int a_x, int a_y, int a_x1, int a_y1)
Calculate distance using Pythagoras.
Definition: Misc.cpp:41
ALMaSS_MathFuncs::ALMaSS_MathFuncs
ALMaSS_MathFuncs()
ALMaSS_MathFuncs constructor.
Definition: Misc.h:35