/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Vec4.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: TheRed +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/13 17:18:35 by TheRed #+# #+# */ /* Updated: 2024/10/13 17:18:35 by TheRed ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef RT_VEC4__HPP # define RT_VEC4__HPP # include "Vector/Vector.hpp" namespace RT { template class Vec4 : public Vector, T, 4> { public: using Vector, T, 4>::Vector; constexpr Vec4(T r, T g, T b, T a) { this->data[0] = r; this->data[1] = g; this->data[2] = b; this->data[3] = a; } }; using Vec4f = Vec4; using Vec4d = Vec4; using Vec4i = Vec4; } #endif