3D vector used to represet points or directions.
More...
#include <Inventor/SbLinear.h>
|
| | SbVec3s () |
| | Default constructor.
|
| |
| | SbVec3s (const short v[3]) |
| | Constructor given an array of 3 components.
|
| |
| | SbVec3s (short x, short y, short z) |
| | Constructor given 3 individual components.
|
| |
| int32_t | dot (const SbVec3s &v) const |
| | Returns dot (inner) product of vector and another vector.
|
| |
| const short * | getValue () const |
| | Returns vector components.
|
| |
| void | getValue (short &x, short &y, short &z) const |
| | Returns vector components.
|
| |
| void | negate () |
| | Negates each component of vector in place.
|
| |
| SbVec3s & | setValue (const short v[3]) |
| | Sets value of vector from array of 3 components.
|
| |
| SbVec3s & | setValue (short x, short y, short z) |
| | Sets value of vector from 3 individual components.
|
| |
| short & | operator[] (int i) |
| | Accesses indexed component of vector.
|
| |
| const short & | operator[] (int i) const |
| |
| SbVec3s & | operator*= (int d) |
| | Component-wise scalar multiplication and division operators.
|
| |
| SbVec3s & | operator*= (double d) |
| |
| SbVec3s & | operator/= (int d) |
| |
| SbVec3s & | operator/= (double d) |
| |
| SbVec3s & | operator+= (const SbVec3s &u) |
| | Component-wise vector addition and subtraction operators.
|
| |
| SbVec3s & | operator-= (const SbVec3s &u) |
| | Component-wise vector addition and subtraction operators.
|
| |
| SbVec3s | operator- () const |
| | Nondestructive unary negation - returns a new vector.
|
| |
|
| short | vec [3] |
| | Storage for vector components.
|
| |
|
| INVENTOR_API SbVec3s | operator* (const SbVec3s &v, int d) |
| | Component-wise binary scalar multiplication and division operators.
|
| |
| INVENTOR_API SbVec3s | operator* (const SbVec3s &v, double d) |
| |
| INVENTOR_API SbVec3s | operator* (int d, const SbVec3s &v) |
| |
| INVENTOR_API SbVec3s | operator* (double d, const SbVec3s &v) |
| |
| INVENTOR_API SbVec3s | operator/ (const SbVec3s &v, int d) |
| |
| INVENTOR_API SbVec3s | operator/ (const SbVec3s &v, double d) |
| |
| INVENTOR_API SbVec3s | operator+ (const SbVec3s &v1, const SbVec3s &v2) |
| | Component-wise binary vector addition and subtraction operators.
|
| |
| INVENTOR_API SbVec3s | operator- (const SbVec3s &v1, const SbVec3s &v2) |
| |
| INVENTOR_API bool | operator== (const SbVec3s &v1, const SbVec3s &v2) |
| | Equality comparison operator.
|
| |
| INVENTOR_API bool | operator!= (const SbVec3s &v1, const SbVec3s &v2) |
| |
Each component of the vector is a (short) integer.
Definition at line 454 of file SbLinear.h.
◆ SbVec3s() [1/3]
◆ SbVec3s() [2/3]
| SbVec3s::SbVec3s |
( |
const short |
v[3] | ) |
|
|
inline |
◆ SbVec3s() [3/3]
| SbVec3s::SbVec3s |
( |
short |
x, |
|
|
short |
y, |
|
|
short |
z |
|
) |
| |
|
inline |
◆ dot()
◆ getValue() [1/2]
| const short * SbVec3s::getValue |
( |
| ) |
const |
|
inline |
◆ getValue() [2/2]
| void SbVec3s::getValue |
( |
short & |
x, |
|
|
short & |
y, |
|
|
short & |
z |
|
) |
| const |
◆ negate()
◆ operator*=() [1/2]
| SbVec3s & SbVec3s::operator*= |
( |
double |
d | ) |
|
◆ operator*=() [2/2]
| SbVec3s & SbVec3s::operator*= |
( |
int |
d | ) |
|
◆ operator+=()
◆ operator-()
| SbVec3s SbVec3s::operator- |
( |
| ) |
const |
◆ operator-=()
◆ operator/=() [1/2]
| SbVec3s & SbVec3s::operator/= |
( |
double |
d | ) |
|
|
inline |
◆ operator/=() [2/2]
| SbVec3s & SbVec3s::operator/= |
( |
int |
d | ) |
|
◆ operator[]() [1/2]
| short & SbVec3s::operator[] |
( |
int |
i | ) |
|
|
inline |
◆ operator[]() [2/2]
| const short & SbVec3s::operator[] |
( |
int |
i | ) |
const |
|
inline |
◆ setValue() [1/2]
| SbVec3s & SbVec3s::setValue |
( |
const short |
v[3] | ) |
|
◆ setValue() [2/2]
| SbVec3s & SbVec3s::setValue |
( |
short |
x, |
|
|
short |
y, |
|
|
short |
z |
|
) |
| |
◆ operator!=
◆ operator* [1/4]
◆ operator* [2/4]
◆ operator* [3/4]
◆ operator* [4/4]
◆ operator+
◆ operator-
◆ operator/ [1/2]
◆ operator/ [2/2]
◆ operator==
◆ vec
The documentation for this class was generated from the following file:
- /home/jenkins/workspaces/mevislab/4.2.0_1/build/MeVis/ThirdParty/Sources/Inventor/include/Inventor/SbLinear.h