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.4.5 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.4.4 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.4.3 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.4.2 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.4.1 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.4.0 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.3.2 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.3.1 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.3.0 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.2.6 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.2.5 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.2.4 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.2.3 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.2.2 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.2.1 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.2.0 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.1.4 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.1.3 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.1.2 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl
pixo-0.1.1 ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl