Home | History | Annotate | Download | only in math

Lines Matching defs:CONSTEXPR

32 #define CONSTEXPR constexpr
34 #define CONSTEXPR
101 static constexpr size_t COL_SIZE = col_type::SIZE; // size of a column (i.e.: number of rows)
102 static constexpr size_t ROW_SIZE = row_type::SIZE; // size of a row (i.e.: number of columns)
103 static constexpr size_t NUM_ROWS = COL_SIZE;
104 static constexpr size_t NUM_COLS = ROW_SIZE;
125 inline constexpr col_type const& operator[](size_t column) const {
127 // only possible in C++0x14 with constexpr
149 explicit constexpr TMat44(no_init)
168 CONSTEXPR TMat44();
184 explicit CONSTEXPR TMat44(U v);
200 explicit CONSTEXPR TMat44(const TVec4<U>& v);
204 explicit CONSTEXPR TMat44(const TMat44<U>& rhs);
217 CONSTEXPR TMat44(const TVec4<A>& v0, const TVec4<B>& v1, const TVec4<C>& v2, const TVec4<D>& v3);
237 CONSTEXPR TMat44(
247 explicit CONSTEXPR TMat44(const TQuaternion<U>& q);
253 explicit CONSTEXPR TMat44(U const* rawArray);
259 explicit CONSTEXPR TMat44(const TMat33<U>& matrix);
265 CONSTEXPR TMat44(const TMat33<U>& matrix, const TVec3<V>& translation);
271 CONSTEXPR TMat44(const TMat33<U>& matrix, const TVec4<V>& column3);
277 static CONSTEXPR TMat44 ortho(T left, T right, T bottom, T top, T near, T far);
279 static CONSTEXPR TMat44 frustum(T left, T right, T bottom, T top, T near, T far);
285 static CONSTEXPR TMat44 perspective(T fov, T aspect, T near, T far, Fov direction = Fov::VERTICAL);
288 static CONSTEXPR TMat44 lookAt(const TVec3<A>& eye, const TVec3<B>& center, const TVec3<C>& up);
291 static CONSTEXPR TVec3<A> project(const TMat44& projectionMatrix, TVec3<A> vertice) {
297 static CONSTEXPR TVec4<A> project(const TMat44& projectionMatrix, TVec4<A> vertice) {
305 inline constexpr TMat33<T> upperLeft() const {
318 CONSTEXPR TMat44<T>::TMat44() {
327 CONSTEXPR TMat44<T>::TMat44(U v) {
336 CONSTEXPR TMat44<T>::TMat44(const TVec4<U>& v) {
350 CONSTEXPR TMat44<T>::TMat44(
363 CONSTEXPR TMat44<T>::TMat44(const TMat44<U>& rhs) {
372 CONSTEXPR TMat44<T>::TMat44(
384 CONSTEXPR TMat44<T>::TMat44(U const* rawArray) {
394 CONSTEXPR TMat44<T>::TMat44(const TQuaternion<U>& q) {
417 CONSTEXPR TMat44<T>::TMat44(const TMat33<U>& m) {
426 CONSTEXPR TMat44<T>::TMat44(const TMat33<U>& m, const TVec3<V>& v) {
435 CONSTEXPR TMat44<T>::TMat44(const TMat33<U>& m, const TVec4<V>& v) {
447 CONSTEXPR TMat44<T> TMat44<T>::ortho(T left, T right, T bottom, T top, T near, T far) {
459 CONSTEXPR TMat44<T> TMat44<T>::frustum(T left, T right, T bottom, T top, T near, T far) {
473 CONSTEXPR TMat44<T> TMat44<T>::perspective(T fov, T aspect, T near, T far, TMat44::Fov direction) {
494 CONSTEXPR TMat44<T> TMat44<T>::lookAt(const TVec3<A>& eye, const TVec3<B>& center, const TVec3<C>& up) {
524 CONSTEXPR
535 CONSTEXPR typename TMat44<T>::col_type PURE operator *(const TMat44<T>& lhs, const TVec3<U>& rhs) {
542 CONSTEXPR typename TMat44<U>::row_type PURE operator *(const TVec4<U>& lhs, const TMat44<T>& rhs) {
552 constexpr typename std::enable_if<std::is_arithmetic<U>::value, TMat44<T>>::type PURE
559 constexpr typename std::enable_if<std::is_arithmetic<U>::value, TMat44<T>>::type PURE
586 #undef CONSTEXPR