vector project function

This commit is contained in:
BlackMATov
2020-12-06 03:07:08 +07:00
parent f9dd3b6105
commit 80287ccaf8
3 changed files with 15 additions and 0 deletions

View File

@@ -1286,6 +1286,9 @@ vec<T, 3> rotate(const vec<T, 3>& v, T angle, const vec<T, 3>& normal);
template < typename T >
vec<T, 4> rotate(const vec<T, 4>& v, T angle, const vec<T, 3>& normal);
template < typename T, std::size_t Size >
vec<T, Size> project(const vec<T, Size>& v, const vec<T, Size>& normal);
```
## [License (MIT)](./LICENSE.md)