Back to Mame

0.9.8: vector_angle.hpp Source File

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

latest2.1 KB
Original Source

| | 0.9.8 |

vector_angle.hpp

Go to the documentation of this file.

1

15 #pragma once

16

17 // Dependency:

18 #include "../glm.hpp"

19 #include "../gtc/epsilon.hpp"

20 #include "../gtx/quaternion.hpp"

21 #include "../gtx/rotate_vector.hpp"

22

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

24 # pragma message("GLM: GLM_GTX_vector_angle extension included")

25 #endif

26

27 namespace glm

28 {

31

35template <typename vecType>

36 GLM_FUNC_DECL typename vecType::value_type angle(

37 vecType const & x,

38 vecType const & y);

39

43template <typename T, precision P>

44 GLM_FUNC_DECL T orientedAngle(

45 tvec2<T, P> const & x,

46 tvec2<T, P> const & y);

47

51template <typename T, precision P>

52 GLM_FUNC_DECL T orientedAngle(

53 tvec3<T, P> const & x,

54 tvec3<T, P> const & y,

55 tvec3<T, P> const & ref);

56

58 }// namespace glm

59

60 #include "vector_angle.inl"

glm

Definition: _noise.hpp:11

glm::angle

GLM_FUNC_DECL vecType::value_type angle(vecType const &x, vecType const &y)

Returns the absolute angle between two vectors.

glm::orientedAngle

GLM_FUNC_DECL T orientedAngle(tvec3< T, P > const &x, tvec3< T, P > const &y, tvec3< T, P > const &ref)

Returns the oriented angle between two 3d vectors based from a reference axis.


Generated by 1.8.10