JOML-CI / JOML

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

Why not implement cloneable interface for vector and matrix? #279

Closed zhouhang95 closed 3 years ago

zhouhang95 commented 3 years ago

As, title.

XenoAmess commented 3 years ago

Cloneable is not recommended.

httpdigest commented 3 years ago

There is no reason, why the classes currently didn't implement Cloneable. There simply wasn't anyone asking for it, until now. Added with https://github.com/JOML-CI/JOML/commit/223693611854b5c6001533a36a92bf39cef320bf

zhouhang95 commented 3 years ago

Thank you. I think it's more handy that "p.clone()" in palce of "new Vector3f(p)".