1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// OpenGL Mathematics Copyright (c) 2005 - 2012 G-Truc Creation (www.g-truc.net)
3
///////////////////////////////////////////////////////////////////////////////////////////////////
4
// Created : 2008-10-24
5
// Updated : 2008-10-24
6
// Licence : This source is under MIT License
7
// File : glm/gtx/log_base.inl
8
///////////////////////////////////////////////////////////////////////////////////////////////////
10
#include "../core/_vectorize.hpp"
14
template <typename genType>
15
GLM_FUNC_QUALIFIER genType log(
19
assert(x != genType(0));
21
return glm::log(x) / glm::log(base);
24
VECTORIZE_VEC_SCA(log)
25
VECTORIZE_VEC_VEC(log)