ofDocsdocumentation glm gtxvector_angle (functions)

gtxvector_angle (functions)


glm::angle( ... )

typename vecType::value_type glm::angle(const vecType &x, const vecType &y)

Returns the absolute angle between two vectors. Parameters need to be normalized.

See also: gtx_vector_angle extension.


glm::orientedAngle( ... )

T glm::orientedAngle(const glm::vec2 &x=P, const glm::vec2 &y=P)

Returns the oriented angle between two 2d vectors. Parameters need to be normalized.

See also: gtx_vector_angle extension.


glm::orientedAngle( ... )

T glm::orientedAngle(const glm::vec3 &x=P, const glm::vec3 &y=P, const glm::vec3 &ref=P)

Returns the oriented angle between two 3d vectors based from a reference axis. Parameters need to be normalized.

See also: gtx_vector_angle extension.