MAT_AE(nged)
compute a rotation matrix from azimuth and elevation angles
π MAT_AE (nged) β bestie's guide to spinning things β¨
okay so like, this is part of the BRL-CAD user commands set (nged), and it's honestly such a little icon. It does one thing and it does it well: it takes an azimuth and an elevation and hands you back a rotation matrix. Periodt. π
β¨ NAME β¨
mat_ae β compute a rotation matrix from azimuth and elevation angles π«
π¦ SYNOPSIS π¦
mat_ae azimuth elevation
π DESCRIPTION π
so the mat_ae command computes a 4x4 rotation matrix from an azimuth and elevation angle pair (both in degrees, bestie, degrees). The result comes back as a 16-element space-separated matrix string, encoded by bn_encode_mat. It's literally the GED wrapper for bn_mat_ae β like, that's its whole job. π
Arguments β the two things you're giving it:
azimuthβ the azimuth angle in degrees (rotation around the Z-axis). πelevationβ the elevation angle in degrees (rotation above/below the XY plane). β¬οΈβ¬οΈ
πΈ EXAMPLES πΈ
Example 1. Generate a rotation matrix from azimuth and elevation
mged> mat_ae 35 20
Returns the 4x4 rotation matrix corresponding to azimuth 35Β° and elevation 20Β° as a 16-element string. like, sixteen elements. count 'em. π₯
π AUTHOR π
BRL-CAD Team π (the actual authors, no cap)
π«Ά BUG REPORTS π«Ά
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. fr fr, if something's acting up, tell them β they wanna know. π§
that's the whole page bb, you ate that π
β¨ β sign-off time: this one's from the BRL-CAD user commands collection, MAT_AE(nged), and yes that footer said BRL-CAD, so shoutout to them. ππ
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms