Goose Management Model ODdox
1.02
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, University of Aarhus
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
28
class
ALMaSS_MathFuncs
{
33
public
:
35
ALMaSS_MathFuncs
() {
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
ALMaSS_MathFuncs::~ALMaSS_MathFuncs
virtual ~ALMaSS_MathFuncs()
ALMaSS_MathFuncs deconstructor.
Definition:
Misc.h:39
ALMaSS_MathFuncs
ALMaSS_MathFuncs constructor.
Definition:
Misc.h:28
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:49
ALMaSS_MathFuncs::CalcDistPythagoras
int CalcDistPythagoras(int a_x, int a_y, int a_x1, int a_y1)
Calculate distance using Pythagoras.
Definition:
misc.cpp:42
ALMaSS_MathFuncs::ALMaSS_MathFuncs
ALMaSS_MathFuncs()
ALMaSS_MathFuncs constructor.
Definition:
Misc.h:35
Repo
ALMaSS_all
Landscape
Misc.h
Generated on Thu Aug 15 2019 10:25:06 for Goose Management Model ODdox by
1.8.16