|
| SbVec2s () |
| Default constructor.
|
|
| SbVec2s (const short v[2]) |
| Constructor given 2 components.
|
|
| SbVec2s (short x, short y) |
| Constructor given 2 components.
|
|
int32_t | dot (const SbVec2s &v) const |
| Returns dot (inner) product of vector and another vector.
|
|
const short * | getValue () const |
| Returns vector components.
|
|
void | getValue (short &x, short &y) const |
| Returns vector components.
|
|
void | negate () |
| Negates each component of vector in place.
|
|
SbVec2s & | setValue (const short v[2]) |
| Sets vector components.
|
|
SbVec2s & | setValue (short x, short y) |
| Sets vector components.
|
|
short & | operator[] (int i) |
| Accesses indexed component of vector.
|
|
const short & | operator[] (int i) const |
|
SbVec2s & | operator*= (int d) |
| Component-wise scalar multiplication and division operators.
|
|
SbVec2s & | operator*= (double d) |
| Component-wise scalar multiplication and division operators.
|
|
SbVec2s & | operator/= (int d) |
| Component-wise scalar multiplication and division operators.
|
|
SbVec2s & | operator/= (double d) |
| Component-wise scalar multiplication and division operators.
|
|
SbVec2s & | operator+= (const SbVec2s &u) |
| Component-wise vector addition and subtraction operators.
|
|
SbVec2s & | operator-= (const SbVec2s &u) |
| Component-wise vector addition and subtraction operators.
|
|
SbVec2s | operator- () const |
| Nondestructive unary negation - returns a new vector.
|
|
|
INVENTOR_API SbVec2s | operator* (const SbVec2s &v, int d) |
| Component-wise binary scalar multiplication and division operators.
|
|
INVENTOR_API SbVec2s | operator* (const SbVec2s &v, double d) |
|
INVENTOR_API SbVec2s | operator* (int d, const SbVec2s &v) |
|
INVENTOR_API SbVec2s | operator* (double d, const SbVec2s &v) |
|
INVENTOR_API SbVec2s | operator/ (const SbVec2s &v, int d) |
|
INVENTOR_API SbVec2s | operator/ (const SbVec2s &v, double d) |
|
INVENTOR_API SbVec2s | operator+ (const SbVec2s &v1, const SbVec2s &v2) |
| Component-wise binary vector addition and subtraction operators.
|
|
INVENTOR_API SbVec2s | operator- (const SbVec2s &v1, const SbVec2s &v2) |
|
INVENTOR_API bool | operator== (const SbVec2s &v1, const SbVec2s &v2) |
| Equality comparison operator.
|
|
INVENTOR_API bool | operator!= (const SbVec2s &v1, const SbVec2s &v2) |
|
2D vector class used to store 2D integer vectors and points. This class is used throughout Inventor for arguments and return values. {}
- See Also
- SbVec3f, SbVec4f, SbVec2f
Definition at line 354 of file SbLinear.h.