Functions

GLM_GTX_projection: Projection

GTX Extensions (Experimental)

Projection of a vector to other one. More...

Functions

template<typename T >
detail::tvec2< T > proj (detail::tvec2< T > const &x, detail::tvec2< T > const &Normal)
template<typename T >
detail::tvec4< T > proj (detail::tvec4< T > const &x, detail::tvec4< T > const &Normal)
template<typename T >
detail::tvec3< T > proj (detail::tvec3< T > const &x, detail::tvec3< T > const &Normal)

Detailed Description

Projection of a vector to other one.

<glm/gtx/projection.hpp> need to be included to use these functionalities.


Function Documentation

detail::tvec2<T> glm::gtx::projection::proj ( detail::tvec2< T > const &  x,
detail::tvec2< T > const &  Normal 
)

Projects x on Normal.

From GLM_GTX_projection extension.

detail::tvec4<T> glm::gtx::projection::proj ( detail::tvec4< T > const &  x,
detail::tvec4< T > const &  Normal 
)

Projects x on Normal.

From GLM_GTX_projection extension.

detail::tvec3<T> glm::gtx::projection::proj ( detail::tvec3< T > const &  x,
detail::tvec3< T > const &  Normal 
)

Projects x on Normal.

From GLM_GTX_projection extension.