pygfx / pylinalg

Linear algebra utilities for Python
https://pylinalg.readthedocs.io/
MIT License
11 stars 3 forks source link

Add rotation matrix from orthonormal base #85

Open berendkleinhaneveld opened 9 months ago

berendkleinhaneveld commented 9 months ago

Maybe call it mat_from_axes?

Korijn commented 9 months ago

We could. It would be trivial (arr = np.eye(4); arr[:3, :3] = axes), but there's value in defining the convention (rows vs columns).

Any other special requirements? For example, automatic pre-normalization of the input axes, or forced orthogonality?

berendkleinhaneveld commented 9 months ago

Your examples sound good to me!