Skip to content

glm::min / max difference behavior than std::min / max #372

@KammutierSpule

Description

@KammutierSpule

Hello!
I am using float NAN to initialize my float vectors. In accord to the float.h from gnu builder, I found that it is expected that fmin fmax in the presence of a non number will choose the number.
i.e:
fmin( nan, value) == value
fmax( nan, value) == value

But it looks like the glm::min / max is not behaving the same. is it supposed?

Btw, is that too bad that I use a NAN to set the vector "not initialized" ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions