Sha256: dfef1e3cf43d659c51f232528392c636755f68dca9ffd335cfcb844120b3c9a1

Contents?: true

Size: 1.35 KB

Versions: 21

Compression:

Stored size: 1.35 KB

Contents

/// @ref gtx_normalize_dot
/// @file glm/gtx/normalize_dot.hpp
///
/// @see core (dependence)
/// @see gtx_fast_square_root (dependence)
///
/// @defgroup gtx_normalize_dot GLM_GTX_normalize_dot
/// @ingroup gtx
///
/// @brief Dot product of vectors that need to be normalize with a single square root.
///
/// <glm/gtx/normalized_dot.hpp> need to be included to use these functionalities.

#pragma once

// Dependency:
#include "../gtx/fast_square_root.hpp"

#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
#	pragma message("GLM: GLM_GTX_normalize_dot extension included")
#endif

namespace glm
{
	/// @addtogroup gtx_normalize_dot
	/// @{

	/// Normalize parameters and returns the dot product of x and y.
	/// It's faster that dot(normalize(x), normalize(y)).
	///
	/// @see gtx_normalize_dot extension.
	template <typename T, precision P, template <typename, precision> class vecType>
	GLM_FUNC_DECL T normalizeDot(vecType<T, P> const & x, vecType<T, P> const & y);

	/// Normalize parameters and returns the dot product of x and y.
	/// Faster that dot(fastNormalize(x), fastNormalize(y)).
	///
	/// @see gtx_normalize_dot extension.
	template <typename T, precision P, template <typename, precision> class vecType>
	GLM_FUNC_DECL T fastNormalizeDot(vecType<T, P> const & x, vecType<T, P> const & y);

	/// @}
}//namespace glm

#include "normalize_dot.inl"

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.4.5 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.4.4 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.4.3 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.4.2 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.4.1 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.4.0 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.3.2 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.3.1 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.3.0 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.2.6 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.2.5 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.2.4 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.2.3 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.2.2 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.2.1 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.2.0 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.1.4 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.1.3 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.1.2 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp
pixo-0.1.1 ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp