2D vector class with double members.
More...
#include <Inventor/SbLineard.h>
|
| | SbVec2d () |
| | Default constructor.
|
| |
| | SbVec2d (const double v[2]) |
| | Constructor given vector components.
|
| |
| | SbVec2d (double x, double y) |
| | Constructor given vector components.
|
| |
| double | dot (const SbVec2d &v) const |
| | Returns dot (inner) product of vector and another vector.
|
| |
| const double * | getValue () const |
| | Returns vector components.
|
| |
| void | getValue (double &x, double &y) const |
| | Returns vector components.
|
| |
| double | length () const |
| | Returns geometric length of vector.
|
| |
| void | negate () |
| | Negates each component of vector in place.
|
| |
| double | normalize () |
| | Changes vector to be unit length.
|
| |
| SbVec2d & | setValue (const double v[2]) |
| | Sets the vector components.
|
| |
| SbVec2d & | setValue (double x, double y) |
| | Sets the vector components.
|
| |
| double & | operator[] (int i) |
| | Accesses indexed component of vector.
|
| |
| const double & | operator[] (int i) const |
| |
| SbVec2d & | operator*= (double d) |
| | Component-wise scalar multiplication and division operators.
|
| |
| SbVec2d & | operator/= (double d) |
| | Component-wise scalar multiplication and division operators.
|
| |
| SbVec2d & | operator+= (const SbVec2d &u) |
| | Component-wise vector addition and subtraction operators.
|
| |
| SbVec2d & | operator-= (const SbVec2d &u) |
| | Component-wise vector addition and subtraction operators.
|
| |
| SbVec2d | operator- () const |
| | Nondestructive unary negation - returns a new vector.
|
| |
| bool | equals (const SbVec2d v, double tolerance) const |
| | Equality comparison within given tolerance em the square of the length of the maximum distance between the two vectors.
|
| |
|
| double | vec [2] |
| | Storage for vector components.
|
| |
2D vector class used to store 2D vectors and points. This class is used throughout Inventor for arguments and return values. {}
- See Also
- SbVec3f, SbVec3f, SbVec4f, SbVec3d, SbVec4d, SbVec2s, SbRotation, SbRotationd
Definition at line 242 of file SbLineard.h.
◆ SbVec2d() [1/3]
◆ SbVec2d() [2/3]
| SbVec2d::SbVec2d |
( |
const double |
v[2] | ) |
|
|
inline |
◆ SbVec2d() [3/3]
| SbVec2d::SbVec2d |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
◆ dot()
| double SbVec2d::dot |
( |
const SbVec2d & |
v | ) |
const |
◆ equals()
| bool SbVec2d::equals |
( |
const SbVec2d |
v, |
|
|
double |
tolerance |
|
) |
| const |
◆ getValue() [1/2]
| const double * SbVec2d::getValue |
( |
| ) |
const |
|
inline |
◆ getValue() [2/2]
| void SbVec2d::getValue |
( |
double & |
x, |
|
|
double & |
y |
|
) |
| const |
◆ length()
| double SbVec2d::length |
( |
| ) |
const |
◆ negate()
◆ normalize()
| double SbVec2d::normalize |
( |
| ) |
|
◆ operator*=()
| SbVec2d & SbVec2d::operator*= |
( |
double |
d | ) |
|
◆ operator+=()
◆ operator-()
| SbVec2d SbVec2d::operator- |
( |
| ) |
const |
◆ operator-=()
◆ operator/=()
| SbVec2d & SbVec2d::operator/= |
( |
double |
d | ) |
|
|
inline |
◆ operator[]() [1/2]
| double & SbVec2d::operator[] |
( |
int |
i | ) |
|
|
inline |
◆ operator[]() [2/2]
| const double & SbVec2d::operator[] |
( |
int |
i | ) |
const |
|
inline |
◆ setValue() [1/2]
| SbVec2d & SbVec2d::setValue |
( |
const double |
v[2] | ) |
|
◆ setValue() [2/2]
| SbVec2d & SbVec2d::setValue |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
◆ operator!=
◆ operator* [1/2]
◆ operator* [2/2]
◆ operator+
◆ operator-
◆ operator/
◆ 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/SbLineard.h