Geometric functions
Header: <glm/geometric.hpp>
(included by <glm/glm.hpp>
)
length(vec<L, T, Q> x) -> T
distance(vec<L, T, Q> p0, vec<L, T, Q> p1) -> T
dot(vec<L, T, Q> x, vec<L, T, Q> y) -> T
cross(vec<3, T, Q> x, vec<3, T, Q> y) -> vec<3, T, Q>
normalize(vec<L, T, Q> x) -> vec<L, T, Q>
faceforward(vec<L, T, Q> N, vec<L, T, Q> I, vec<L, T, Q> Nref) -> vec<L, T, Q>
- If \(\operatorname{dot}(\mathit{Nref}, I) < 0\) return \(N\), otherwise return \(-N\).
reflect(vec<L, T, Q> I, vec<L, T, Q> N) -> vec<L, T, Q>
refract(vec<L, T, Q> I, vec<L, T, Q> N, T eta) -> vec<L, T, Q>