SbVec2b(3)
π 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
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms