CROSS(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

✨ CROSS(3G) ✨

okay bestie, welcome to the cross glow-up πŸ’… this is the 3G manual page, and we're about to calculate a cross product together like it's the most iconic thing that's ever happened to you.


🌸 NAME 🌸

cross β€” calculate the cross product of two vectors ✨


πŸŽ€ DECLARATION πŸŽ€

here's the receipt, no cap, exactly how you call it:

vec3 cross(vec3 x, vec3 y);

dvec3 cross(dvec3 x, dvec3 y);

πŸ¦‹ PARAMETERS πŸ¦‹

  • x β€” specifies the first of two vectors 🫢
  • y β€” specifies the second of two vectors 🫢

πŸ’– DESCRIPTION πŸ’–

so basically, cross returns the cross product of two vectors, x and y, i.e.

$\begin{pmatrix} { x[1] \times y[2] - y[1] \times x[2] } \\ { x[2]
\times y[0] - y[2] \times x[0] } \\ { x[0] \times y[1] - y[0] \times
x[1] } \end{pmatrix}$

the way it's literally just three little lines of multiply-and-subtract and it ate that whole thing up 😭πŸ”₯


πŸ‘‘ VERSION SUPPORT πŸ‘‘

here's the vibe check across every OpenGL Shading Language version, bestie β€” the versions are 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40, 4.50 and I'm listing every single one because we do NOT skip details in this house πŸ’…

  • cross (vec3) β€” supported everywhere, periodt. βœ” in 1.10, βœ” in 1.20, βœ” in 1.30, βœ” in 1.40, βœ” in 1.50, βœ” in 3.30, βœ” in 4.00, βœ” in 4.10, βœ” in 4.20, βœ” in 4.30, βœ” in 4.40, βœ” in 4.50 ⭐
  • cross (dvec3) β€” not me showing up late to the party πŸ™ˆ it's - in 1.10, - in 1.20, - in 1.30, - in 1.40, - in 1.50, - in 3.30, then it finally hits main character energy: βœ” in 4.00, βœ” in 4.10, βœ” in 4.20, βœ” in 4.30, βœ” in 4.40, βœ” in 4.50 🌈

🧚 SEE ALSO 🧚

  • dot() β€” the other one, iykyk πŸ’œ

Copyright Β© 2011-2016 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.


Copyright Β© 2011-2014 Khronos Group


okay that's the whole page πŸŽ€ source situation is [FIXME: source] and the date on this baddie is 01/03/2018 β€” go forth and cross those products, you absolute icon πŸ‘‘βœ¨

πŸ“¦ where this page comes from