Back to Mame

0.9.8: vector_query.hpp Source File

3rdparty/glm/doc/api/a00138_source.html

latest4.1 KB
Original Source

| | 0.9.8 |

vector_query.hpp

Go to the documentation of this file.

1

13 #pragma once

14

15 // Dependency:

16 #include "../glm.hpp"

17 #include <cfloat>

18 #include <limits>

19

20 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)

21 # pragma message("GLM: GLM_GTX_vector_query extension included")

22 #endif

23

24 namespace glm

25 {

28

31template <typename T, precision P, template <typename, precision> class vecType>

32 GLM_FUNC_DECL bool areCollinear(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);

33

36template <typename T, precision P, template <typename, precision> class vecType>

37 GLM_FUNC_DECL bool areOrthogonal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);

38

41template <typename T, precision P, template <typename, precision> class vecType>

42 GLM_FUNC_DECL bool isNormalized(vecType<T, P> const & v, T const & epsilon);

43

46template <typename T, precision P, template <typename, precision> class vecType>

47 GLM_FUNC_DECL bool isNull(vecType<T, P> const & v, T const & epsilon);

48

51template <typename T, precision P, template <typename, precision> class vecType>

52 GLM_FUNC_DECL vecType<bool, P> isCompNull(vecType<T, P> const & v, T const & epsilon);

53

56template <typename T, precision P, template <typename, precision> class vecType>

57 GLM_FUNC_DECL bool areOrthonormal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);

58

60 }// namespace glm

61

62 #include "vector_query.inl"

glm::isNormalized

GLM_FUNC_DECL bool isNormalized(vecType< T, P > const &v, T const &epsilon)

Check whether a vector is normalized.

glm::epsilon

GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()

Return the epsilon constant for floating point types.

glm

Definition: _noise.hpp:11

glm::areOrthonormal

GLM_FUNC_DECL bool areOrthonormal(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)

Check whether two vectors are orthonormal.

glm::areOrthogonal

GLM_FUNC_DECL bool areOrthogonal(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)

Check whether two vectors are orthogonals.

glm::isCompNull

GLM_FUNC_DECL vecType< bool, P > isCompNull(vecType< T, P > const &v, T const &epsilon)

Check whether a each component of a vector is null.

glm::areCollinear

GLM_FUNC_DECL bool areCollinear(vecType< T, P > const &v0, vecType< T, P > const &v1, T const &epsilon)

Check whether two vectors are collinears.

glm::isNull

GLM_FUNC_DECL bool isNull(vecType< T, P > const &v, T const &epsilon)

Check whether a vector is null.


Generated by 1.8.10