Add geom::normalized(ray)
This commit is contained in:
parent
02b29af95a
commit
3e0060d9cb
1 changed files with 6 additions and 0 deletions
|
|
@ -65,4 +65,10 @@ namespace psemek::geom
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T, std::size_t N>
|
||||||
|
ray<T, N> normalized(ray<T, N> r)
|
||||||
|
{
|
||||||
|
r.direction = normalized(r.direction);
|
||||||
|
return r;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue