FlukyEngine
Functions
GLM_GTX_projection

Include <glm/gtx/projection.hpp> to use the features of this extension. More...

Collaboration diagram for GLM_GTX_projection:

Functions

template<typename genType >
GLM_FUNC_DECL genType glm::proj (genType const &x, genType const &Normal)
 Projects x on Normal. More...
 

Detailed Description

Include <glm/gtx/projection.hpp> to use the features of this extension.

Projection of a vector to other one

Function Documentation

◆ proj()

template<typename genType >
GLM_FUNC_DECL genType glm::proj ( genType const &  x,
genType const &  Normal 
)

Projects x on Normal.

Parameters
[in]xA vector to project
[in]NormalA normal that doesn't need to be of unit length.
See also
GLM_GTX_projection