DISTANCE(3G)

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

πŸ’– 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 in 1.10, 1.20, 1.30, 1.40, 1.50, or 3.30 (those are all -, so don't come crying to her). she shows up starting at 4.00 and is supported in 4.00, 4.10, 4.20, 4.30, 4.40, and 4.50. βœ” from 4.00 onward, periodt.
bestie if you're on anything below 4.00 and you're reaching for the genDType version… 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 Β© 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


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