PyGLM icon indicating copy to clipboard operation
PyGLM copied to clipboard

[Request] Overload __bool__?

Open GanerCodes opened this issue 1 year ago • 0 comments

I'd expect 0 vector cases like bool(vec2()) to be False but it seems to be True. Is this intended? It would be really convenient for this to be performed

Edit: im pretty sure implementation would just be def __bool__(self): return any(self)

GanerCodes avatar May 31 '23 21:05 GanerCodes