/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Vec2.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: TheRed +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/13 17:16:11 by TheRed #+# #+# */ /* Updated: 2024/10/13 17:16:11 by TheRed ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef RT_VEC2__HPP #define RT_VEC2__HPP # include "Vector/Vector.hpp" namespace RT { template class Vec2 : public Vector, T, 2> { public: using Vector, T, 2>::Vector; constexpr Vec2(T x, T y) { this->data[0] = x; this->data[1] = y; } }; using Vec2f = Vec2; using Vec2d = Vec2; using Vec2i = Vec2; } #endif