Vector Relational Functions
Core features
Header: <glm/vector_relational.hpp>
(included by <glm/glm.hpp>
)
lessThan(vec<L, T, Q> x, vec<L, T, Q> y) -> vec<L, bool, Q>
lessThanEqual(vec<L, T, Q> x, vec<L, T, Q> y) -> vec<L, bool, Q>
greaterThan(vec<L, T, Q> x, vec<L, T, Q> y) -> vec<L, bool, Q>
greaterThanEqual(vec<L, T, Q> x, vec<L, T, Q> y) -> vec<L, bool, Q>
equal(vec<L, T, Q> x, vec<L, T, Q> y) -> vec<L, bool, Q>
notEqual(vec<L, T, Q> x, vec<L, T, Q> y) -> vec<L, bool, Q>
all(vec<L, bool, Q> v) -> bool
any(vec<L, bool, Q> v) -> bool
not_(vec<L, bool, Q> v) -> vec<L, bool, Q>
Stable extension: vector_relational
Header: <glm/ext/vector_relational.hpp>
equal(vec<L, T, Q> x, vec<L, T, Q> y, T epsilon) -> vec<L, bool, Q>
- Returns the component-wise comparison of \(\lvert x-y\rvert<\mathit{epsilon}\).
equal(vec<L, T, Q> x, vec<L, T, Q> y, vec<L, T, Q> epsilon) -> vec<L, bool, Q>
notEqual(vec<L, T, Q> x, vec<L, T, Q> y, T epsilon) -> vec<L, bool, Q>
notEqual(vec<L, T, Q> x, vec<L, T, Q> y, vec<L, T, Q> epsilon) -> vec<L, bool, Q>