DISTANCE(3G)
π distance β the 3G manual page, but make it cute π
okay so bestie, this is a page from the 3G manual, and it's all about one lil function called distance. she's simple, she's iconic, she measures how far apart two points are. that's it. that's the whole vibe. let's get into it π¦
β¨ NAME β¨
distance β calculate the distance between two points πΈ
like. literally that. the girl math is mathing.
β¨ DECLARATION β¨
here's how you summon her, no cap, copy these exactly:
float distance(genType p0, genType p1);
double distance(genDType p0, genDType p1);
two flavors: the float one takes genTypes, the double one takes genDTypes. pick your fighter π
β¨ PARAMETERS β¨
p0β the first of the two points π«Άp1β the second of the two points π«Ά
that's the whole guest list. two points. main characters only.
β¨ DESCRIPTION β¨
so distance returns the distance between the two points p0 and p1. i.e.,
length(p0, p1);
and that's the tea β she's just handing you the distance. no drama, no side quests. slay π
β¨ VERSION SUPPORT β¨
ngl this is the part where the shading language version girlies get picky. here's who's invited to the party π
distance(genType) β supported in every single version listed:1.10,1.20,1.30,1.40,1.50,3.30,4.00,4.10,4.20,4.30,4.40,4.50. all β, all the way down. she's been here since day one and she's not leaving π₯distance(genDType) β not supported in1.10,1.20,1.30,1.40,1.50, or3.30(those are all-, so don't come crying to her). she shows up starting at4.00and is supported in4.00,4.10,4.20,4.30,4.40, and4.50. β from4.00onward, periodt.
bestie if you're on anything below4.00and you're reaching for thegenDTypeversionβ¦ she is simply not there. the-is not a vibe, it's a boundary π
β¨ SEE ALSO β¨
length()normalize()
go read those too, they're in the same friend group π
β¨ 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 β¨ (yes, again, she said it twice π )
Copyright Β© 2011-2014 Khronos Group
and that's a wrap, bestie π§ this was the DISTANCE(3G) page, straight out of the [FIXME: manual] / [FIXME: source] situation, dated 01/03/2018. go measure something. i'm obsessed with you. bye πβ¨
π¦ 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