// Copyright (C) 2012 Rémi Bèges // This file is part of the "Nazara Engine". // For conditions of distribution and use, see copyright notice in Config.hpp #include #include #include #include #include #include template NzMappedNoiseBase::NzMappedNoiseBase() : m_gain(1), m_offset(0), m_resolution(30) { } template T NzMappedNoiseBase::GetGain() const { return m_gain; } template T NzMappedNoiseBase::GetOffset() const { return m_offset; } template T NzMappedNoiseBase::GetResolution() const { return m_resolution; } template void NzMappedNoiseBase::SetGain(T gain) { m_gain = gain; } template void NzMappedNoiseBase::SetOffset(T offset) { m_offset = offset; } template void NzMappedNoiseBase::SetResolution(T resolution) { if (NzNumberEquals(resolution, static_cast(0.0))) { NzStringStream ss; ss << __FILE__ << ':' << __LINE__ << " : resolution cannot be 0.0f"; throw std::domain_error(ss.ToString()); } m_resolution = resolution; } #include