SbVec3b(3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

πŸ’– SbVec3b(3) πŸ’–

okay so bestie, welcome to the SbVec3b(3) page, straight out of the Library Functions Manual β€” yes that's the manual's whole name, generic but iconic, we respect it. This is your girl explaining the entire page, top to bottom, nothing skipped, nothing dropped. periodt. 🫢


✨ NAME ✨

SbVec3b β€” that's the name, that's the class, that's the whole assignment. She keeps a vec array of three int8_t values tucked inside her, and this page is her moment. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

First thing you do, you pull in the header, no debate:

#include <Inventor/SbVec3b.h>

🌸 Public Member Functions 🌸

Here's the full roster, every single one of them, read 'em and weep (affectionately) 😭:

SbVec3b (const int8_t v[3])
SbVec3b (int8_t x, int8_t y, int8_t z)
SbVec3b (const SbVec3ub &v)
SbVec3b (const SbVec3s &v)
SbVec3b (const SbVec3i32 &v)
SbVec3b (const SbVec3f &v)
SbVec3b (const SbVec3d &v)
SbVec3b & setValue (int8_t v[3])
SbVec3b & setValue (int8_t x, int8_t y, int8_t z)
SbVec3b & setValue (const SbVec3ub &v)
SbVec3b & setValue (const SbVec3s &v)
SbVec3b & setValue (const SbVec3i32 &v)
SbVec3b & setValue (const SbVec3f &v)
SbVec3b & setValue (const SbVec3d &v)
const int8_t * getValue (void) const
void getValue (int8_t &x, int8_t &y, int8_t &z) const
int8_t & operator[] (int i)
const int8_t & operator[] (int i) const
int32_t dot (SbVec3b v) const
void negate (void)
SbVec3b & operator*= (int d)
SbVec3b & operator*= (double d)
SbVec3b & operator/= (int d)
SbVec3b & operator/= (double d)
SbVec3b & operator+= (SbVec3b v)
SbVec3b & operator-= (SbVec3b v)
SbVec3b operator- (void) const
  • Seven constructors β€” she can be built from an int8_t array, from three loose int8_ts, or from a SbVec3ub, SbVec3s, SbVec3i32, SbVec3f or SbVec3d. Versatile queen, she contains multitudes. πŸ‘‘
  • setValue β€” seven overloads doing the same energy as the constructors above, just on a vector that already exists. Same list of types, fr fr.
  • getValue β€” two flavors: one hands you back a const int8_t *, the other fills in your int8_t &x, int8_t &y, int8_t &z by reference. Both are const, as they should be. 🧚
  • operator[] β€” index on in with an int i, and you get back an int8_t &. There's a const twin right underneath that gives you a const int8_t &. Two icons, one vibe check.
  • dot β€” takes a SbVec3b and returns an int32_t. That's the whole spec, that's what the page says, iykyk.
  • negate β€” takes void, returns void. Just flips the whole situation in place, no receipts. πŸ’€
  • Arithmetic operators β€” operator*= (int d), operator*= (double d), operator/= (int d), operator/= (double d), operator+= (SbVec3b v), operator-= (SbVec3b v). All of the = ones hand back a SbVec3b & so you can chain like it's a group chat. πŸ’¬
  • operator- (void) const β€” the unary minus, no argument, returns a fresh SbVec3b by value. She's giving ✨new object✨, not touching the original.

πŸŽ€ Protected Attributes πŸŽ€

int8_t vec [3]

Three int8_ts in an array called vec, and she is protected so mind your business and use the functions above. 🫣


πŸ“ Detailed Description πŸ“

⭐ Since ⭐

Coin 2.5 β€” she's been around since then, an elder stateswoman of vectors, lowkey legendary. πŸ•°οΈ


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for Coin from the source code. So no, a human didn't hand-write this one, it's a robot bestie doing her best. πŸ€–

and that's the whole page, bestie, every option, every signature, every attribute, nothing left out. slay. πŸ’…βœ¨

Coin β€” Version 3.1.3 β€” SbVec3b(3) πŸ¦‹ mwah, go build something cute with your three int8_ts. πŸŽ€

πŸ“¦ where this page comes from