SbVec3b(3)

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

πŸ’– NAME πŸ’–

SbVec3b β€” bestie, this is the Coin library's three-dimensional vector of signed 8-bit ints, and yes, she's serving in your <Inventor/SbVec3b.h> era πŸ’… (the whole family of these pages lives in the Coin manual, just so you know what universe we're in).


✨ SYNOPSIS ✨

#include <Inventor/SbVec3b.h>

πŸŽ€ Public Member Functions πŸŽ€

Constructors first, because that's how we make an entrance:

  • SbVec3b(const int8_t v[3]) β€” build one straight from a three-element array of int8_t
  • SbVec3b(int8_t x, int8_t y, int8_t z) β€” build one from three separate coords, no array required, iconic
  • SbVec3b(const SbVec3ub &v) β€” copy-convert from an SbVec3ub
  • SbVec3b(const SbVec3s &v) β€” copy-convert from an SbVec3s
  • SbVec3b(const SbVec3i32 &v) β€” copy-convert from an SbVec3i32
  • SbVec3b(const SbVec3f &v) β€” copy-convert from an SbVec3f
  • SbVec3b(const SbVec3d &v) β€” copy-convert from an SbVec3d

Now the setters, aka the glow-up tools:

  • SbVec3b & setValue(int8_t v[3]) β€” overwrite the vector from a three-element int8_t array
  • SbVec3b & setValue(int8_t x, int8_t y, int8_t z) β€” overwrite it with three explicit values
  • SbVec3b & setValue(const SbVec3ub &v) β€” set it from an SbVec3ub
  • SbVec3b & setValue(const SbVec3s &v) β€” set it from an SbVec3s
  • SbVec3b & setValue(const SbVec3i32 &v) β€” set it from an SbVec3i32
  • SbVec3b & setValue(const SbVec3f &v) β€” set it from an SbVec3f
  • SbVec3b & setValue(const SbVec3d &v) β€” set it from an SbVec3d

Getting the tea back out:

  • const int8_t * getValue(void) const β€” hand you a pointer to the internal array, read-only style
  • void getValue(int8_t &x, int8_t &y, int8_t &z) const β€” drop the three components into your own references

Indexing and math, the fun part 🧚:

  • int8_t & operator[](int i) β€” index a single component, mutable, main character energy
  • const int8_t & operator[](int i) const β€” same thing but const, so she behaves
  • int32_t dot(SbVec3b v) const β€” the dot product of this vector and v, returned as an int32_t
  • void negate(void) β€” flip all the signs in place, no return value, she just does it
  • SbVec3b & operator*=(int d) β€” multiply in place by an int
  • SbVec3b & operator*=(double d) β€” multiply in place by a double
  • SbVec3b & operator/=(int d) β€” divide in place by an int
  • SbVec3b & operator/=(double d) β€” divide in place by a double
  • SbVec3b & operator+=(SbVec3b v) β€” add another SbVec3b in place
  • SbVec3b & operator-=(SbVec3b v) β€” subtract another SbVec3b in place
  • SbVec3b operator-(void) const β€” unary minus, returns a brand new negated SbVec3b

🌸 Protected Attributes 🌸

  • int8_t vec [3] β€” the actual storage, protected, so hands off unless you're a subclass 🫢

🌈 DETAILED DESCRIPTION 🌈

It's an SbVec3b. Three signed 8-bit integers. A vector. That's the whole vibe, and honestly? She ate. πŸ“

⭐ Since ⭐

Coin 2.5 β€” so she's been around a minute, no cap.


πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for Coin from the source code. (Not a human author, just the machine doing its thing, and it did that πŸ’€βœ¨)


okay bestie that's the whole page πŸ’– go forth and store your three lil bytes πŸ’…

This was SbVec3b(3) from Coin, Version 4.0.10, dated Thu Jun 25 2026 00:00:00 β€” mwah, bye! πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from