DOT(3G)

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

πŸ’– dot β€” DOT(3G) πŸ’–

okay bestie, gather round, because today we're talking about dot from the 3G manual β€” the little function that does the most and asks for so little. ✨


🌸 NAME 🌸

dot β€” calculate the dot product of two vectors. that's it. that's the whole job. and she does it flawlessly. πŸ’…


✨ DECLARATION ✨

here's how you call her, no cap:

float dot(genType x, genType y);

double dot(genDType x, genDType y);

πŸŽ€ PARAMETERS πŸŽ€

  • x β€” the first of two vectors. your main character vector. πŸ‘‘
  • y β€” the second of two vectors. the supporting lead. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

dot returns the dot product of two vectors, x and y. like, literally this:

x [ 0 ] β‹… y [ 0 ] + x [ 1 ] β‹… y [ 1 ] + ...

that's the vibe. multiply the matching components, add it all up, done. it's giving mathematics. 🌈


⭐ VERSION SUPPORT ⭐

vibe check on which OpenGL Shading Language versions are down for it:

  • dot (genType) β€” βœ” in every single one: 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40, 4.50. an icon, a legend, never skipped a day. πŸ’–
  • dot (genDType) β€” - in 1.10, 1.20, 1.30, 1.40, 1.50 … then βœ” from 4.00 all the way through 4.10, 4.20, 4.30, 4.40, 4.50. late bloomer era, and honestly? we respect the glow up. 🌸

πŸ”₯ SEE ALSO πŸ”₯

  • cross() β€” her cousin. different energy, same family. iykyk. πŸ’…

Copyright Β© 2011-2014 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


no cap, every flag, every version, every copyright line survived the rewrite. the facts did not get edited, periodt. πŸ’œ

and that's the page, bestie πŸŽ€ β€” brought to you by [FIXME: source], dated 01/03/2018, and yes it still signs off as DOT(3G) because some things are simply iconic. πŸ¦‹βœ¨

πŸ“¦ where this page comes from