Galactic Bloodshed
gb
misc.h
Go to the documentation of this file.
1
// Copyright 2014 The Galactic Bloodshed Authors. All rights reserved.
2
// Use of this source code is governed by a license that can be
3
// found in the COPYING file.
4
5
#
ifndef
MISC_H
6
#
define
MISC_H
7
8
#
include
<
cmath
>
9
10
/**
11
* \brief Scales used in production efficiency etc.
12
* \param x Integer from 0-100
13
* \return Float 0.0 - 1.0 (logscaleOB 0.5 - .95)
14
*/
15
inline
double
logscale
(
const
int
x) {
return
log10((
double
)x + 1.0) / 2.0; }
16
17
#
endif
// MISC_H
logscale
double logscale(const int x)
Scales used in production efficiency etc.
Definition:
misc.h:15
Generated by
1.8.13