JOML-CI / JOML

A Java math library for OpenGL rendering calculations
MIT License
728 stars 104 forks source link

Request: AABBd and AABBf .set(x1,y1,z1, x2,y2,z2) #294

Closed jordan4ibanez closed 3 years ago

jordan4ibanez commented 3 years ago

This is a simple request to reuse AABB(f and d) objects without needing to call the: .setMin(x1,y1,z1) and .setMax(x2,y2,z2)

So it can be cleanly reused by just simply doing .set(x1,y1,z1,x2,y2,z2)

httpdigest commented 3 years ago

There is no AABB in main JOML anymore, as of JOML 1.10.0. All the geometric primitives have been moved to joml-primitives. See: https://github.com/JOML-CI/JOML/releases/tag/1.10.0 Also, I am not sure what you mean by "reuse". You can certainly call: aabb.setMin(x1, y1, z1).setMax(x2, y2, z2). I don't see a strict necessity for having a "merged" method like you proposed.