| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // vector_typedefs.hpp
- // math
- //
- // Created by Sam Jaffe on 7/5/16.
- //
- #pragma once
- #include <cstddef>
- #include <cstdint>
- namespace math {
- namespace vector {
- template <typename, size_t> class vector;
- }
- namespace matrix {
- template <typename, size_t, size_t> class matrix;
- template <typename T, size_t N> using square_matrix = matrix<T, N, N>;
- }
- }
- namespace math {
- using vec2i = vector::vector<int, 2>;
- using vec2 = vector::vector<float, 2>;
- using vec3 = vector::vector<float, 3>;
- using rgba = vector::vector<uint8_t, 4>;
- using matr4 = matrix::matrix<float, 4, 4>;
- namespace dim2 {
- using point = vec2;
- struct line;
- struct circle;
- struct quad;
- struct rectangle;
- struct square;
- }
- struct degree;
- struct radian;
- }
|