DOT(3G)
π 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) β - in1.10,1.20,1.30,1.40,1.50β¦ then β from4.00all the way through4.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 π
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 π
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
- ubuntu jammy: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- ubuntu noble: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms