SbVec2b(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– SbVec2b πŸ’–

okay bestie, welcome to the Coin manual page for SbVec2b β€” it's a vector class for containing two byte integers. that's it. that's the whole vibe. two. byte. ints. iconic. πŸŽ€


✨ NAME ✨

SbVec2b β€” a vector class for containing two byte integers. no cap, that's literally what it does, and it does it flawlessly. πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta let the compiler know it exists:

#include <Inventor/SbVec2b.h>

🫢 Public Member Functions 🫢

here's the whole friend group β€” every single one of them, no skipping:

SbVec2b (const int8_t v[2])
SbVec2b (int8_t x, int8_t y)
SbVec2b (const SbVec2ub &v)
SbVec2b (const SbVec2s &v)
SbVec2b (const SbVec2i32 &v)
SbVec2b (const SbVec2f &v)
SbVec2b (const SbVec2d &v)
SbVec2b & setValue (const int8_t v[2])
SbVec2b & setValue (int8_t x, int8_t y)
SbVec2b & setValue (const SbVec2ub &v)
SbVec2b & setValue (const SbVec2s &v)
SbVec2b & setValue (const SbVec2i32 &v)
SbVec2b & setValue (const SbVec2f &v)
SbVec2b & setValue (const SbVec2d &v)
const int8_t * getValue (void) const
void getValue (int8_t &x, int8_t &y) const
int8_t & operator[] (int i)
const int8_t & operator[] (int i) const
int32_t dot (SbVec2b v) const
void negate (void)
SbVec2b & operator*= (int d)
SbVec2b & operator*= (double d)
SbVec2b & operator/= (int d)
SbVec2b & operator/= (double d)
SbVec2b & operator+= (SbVec2b v)
SbVec2b & operator-= (SbVec2b v)
SbVec2b operator- (void) const

look at all those constructors. seven of them. she's versatile, she's adaptable, she talks to SbVec2ub, SbVec2s, SbVec2i32, SbVec2f and SbVec2d. queen of networking fr fr. πŸ‘‘

πŸ™ˆ Protected Attributes πŸ™ˆ

the ~private~ stuff, but make it protected:

int8_t vec [2]

yeah. that's the actual storage. two whole int8_ts living their best life in an array. main character energy tbh. 🌟


πŸ¦‹ Detailed Description πŸ¦‹

a vector class for containing two byte integers.

that's the assignment. she understood it. she executed it. periodt. πŸ’…

🌈 See also

  • SbVec2ub β€” the unsigned sibling, go say hi 🫢

⭐ Since

Coin 2.5. a classic. vintage. she's been serving since 2.5 and she has never once fallen off.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code.

(not a human. a robot wrote this. and the robot ate. no crumbs. πŸ€–βœ¨)


lowkey reminder bestie: this page is Version 4.0.10, and it was generated on Thu Jun 25 2026 00:00:00. so if you're reading this from the future, hi, you're doing amazing, and also please check if a newer version exists before you @ me. πŸ˜­πŸ’–

πŸ¦‹ stay slay, keep your byte integers signed, and never forget: two is a perfectly valid vector length. bye bestie!! πŸŽ€πŸŒΈπŸ’œ

πŸ“¦ where this page comes from