mirror of
https://github.com/g-truc/glm.git
synced 2025-04-06 22:15:00 +00:00
Fixed float comparison warnings #270
This commit is contained in:
parent
3adf263341
commit
5b911d1eb0
1 changed files with 2 additions and 2 deletions
|
@ -213,8 +213,8 @@ namespace glm
|
|||
T zFar
|
||||
)
|
||||
{
|
||||
assert(aspect != static_cast<T>(0));
|
||||
assert(zFar != zNear);
|
||||
assert(abs(aspect - std::numeric_limits<T>::epsilon()) > static_cast<T>(0));
|
||||
assert(zFar > zNear);
|
||||
|
||||
T const tanHalfFovy = tan(fovy / static_cast<T>(2));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue