---
name: "SbVec2b"
section: "3"
platform: "linux"
package: "coin"
version: "1:4.0.10-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/SbVec2b"
---

# SbVec2b(3)

a vector class for containing two byte integers.

## NAME

SbVec2b - a vector class for containing two byte integers.

## SYNOPSIS

\#include \<Inventor/SbVec2b.h\>

### Public Member Functions

**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\

### Protected Attributes

int8\_t **vec** \[2\]\

## Detailed Description

a vector class for containing two byte integers.

**See also**

**SbVec2ub**

**Since**

Coin 2.5

## Author

Generated automatically by Doxygen for Coin from the source code.
