Sha256: c9407ed052aba032b97cec1210b656bab81cc9a54b30e8d50518440cb5c3233e

Contents?: true

Size: 581 Bytes

Versions: 21

Compression:

Stored size: 581 Bytes

Contents

/// @ref gtx_handed_coordinate_space
/// @file glm/gtx/handed_coordinate_space.inl

namespace glm
{
	template <typename T, precision P>
	GLM_FUNC_QUALIFIER bool rightHanded
	(
		tvec3<T, P> const & tangent,
		tvec3<T, P> const & binormal,
		tvec3<T, P> const & normal
	)
	{
		return dot(cross(normal, tangent), binormal) > T(0);
	}

	template <typename T, precision P>
	GLM_FUNC_QUALIFIER bool leftHanded
	(
		tvec3<T, P> const & tangent,
		tvec3<T, P> const & binormal,
		tvec3<T, P> const & normal
	)
	{
		return dot(cross(normal, tangent), binormal) < T(0);
	}
}//namespace glm

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.1.0 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl