![]() |
http://www.sim.no http://www.coin3d.org |
The SbVec3s class is a 3 dimensional vector with short integer coordinates. More...
#include <Inventor/SbLinear.h>
Friends | |
SbVec3s | operator* (const SbVec3s &v, int d) |
SbVec3s | operator* (const SbVec3s &v, double d) |
SbVec3s | operator* (int d, const SbVec3s &v) |
SbVec3s | operator* (double d, const SbVec3s &v) |
SbVec3s | operator/ (const SbVec3s &v, int d) |
SbVec3s | operator/ (const SbVec3s &v, double d) |
SbVec3s | operator+ (const SbVec3s &v1, const SbVec3s &v2) |
SbVec3s | operator- (const SbVec3s &v1, const SbVec3s &v2) |
int | operator== (const SbVec3s &v1, const SbVec3s &v2) |
int | operator!= (const SbVec3s &v1, const SbVec3s &v2) |
Related Symbols | |
(Note that these are not member symbols.) | |
SbVec3s | operator* (const SbVec3s &v, int d) |
SbVec3s | operator* (const SbVec3s &v, double d) |
SbVec3s | operator* (int d, const SbVec3s &v) |
SbVec3s | operator* (double d, const SbVec3s &v) |
SbVec3s | operator/ (const SbVec3s &v, int d) |
SbVec3s | operator/ (const SbVec3s &v, double d) |
SbVec3s | operator+ (const SbVec3s &v1, const SbVec3s &v2) |
SbVec3s | operator- (const SbVec3s &v1, const SbVec3s &v2) |
int | operator== (const SbVec3s &v1, const SbVec3s &v2) |
int | operator!= (const SbVec3s &v1, const SbVec3s &v2) |
The SbVec3s class is a 3 dimensional vector with short integer coordinates.
This vector class provides storage for a 3 dimensional vector as well as simple integer arithmetic operations.
Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
SbVec3s::SbVec3s | ( | void | ) |
The default constructor does nothing. The vector coordinates will be uninitialized until you do a setValue() call.
Referenced by operator-().
Constructs an SbVec3s instance with the initial vector endpoint set to <x,y,z>.
Sets this vector to the unsigned short integer precision vector v, converting the vector to an short integer precision vector.
Sets this vector to the 8-bit integer precision vector v, converting the vector to an short integer precision vector.
Sets this vector to the unsigned 32-bit integer precision vector v, converting the vector to an short integer precision vector.
Sets this vector to the floating point precision vector v, converting the vector to an short integer precision vector.
Sets this vector to the double floating point precision vector v, converting the vector to an short integer precision vector.
Calculates and returns the result of taking the dot product of this vector and v.
Returns a pointer to an array of three shorts containing the x, y and z coordinates of the vector.
void SbVec3s::getValue | ( | short & | x, |
short & | y, | ||
short & | z ) const |
Returns the x, y and z coordinates of the vector.
Set new coordinates for the vector from v. Returns reference to self.
Referenced by SbBox3s::extendBy(), SbBox3s::makeEmpty(), SbBox3s::setBounds(), SbBox3s::setBounds(), SbBox3s::setBounds(), and SbBox3s::setBounds().
Set new coordinates for the vector. Returns reference to self.
Set new coordinates for the vector from v. Returns reference to self.
Set new coordinates for the vector from v. Returns reference to self.
Set new coordinates for the vector from v. Returns reference to self.
References SoDebugError::post().
|
inline |
Index operator. Returns modifiable x, y or z coordinate of vector.
|
inline |
Index operator. Returns x, y or z coordinate of vector.
SbVec3s & SbVec3s::operator*= | ( | int | d | ) |
Multiply components of vector with value d. Returns reference to self.
SbVec3s & SbVec3s::operator*= | ( | double | d | ) |
Multiply components of vector with value d. Returns reference to self.
SbVec3s & SbVec3s::operator/= | ( | int | d | ) |
Divides components of vector with value d. Returns reference to self.
References SoDebugError::postWarning().
SbVec3s & SbVec3s::operator/= | ( | double | d | ) |
Divides components of vector with value d. Returns reference to self.
References SoDebugError::postWarning().
Adds this vector and vector u. Returns reference to self.
Subtracts vector u from this vector. Returns reference to self.
Dump the state of this object to the file stream. Only works in debug version of library, method does nothing in an optimized compile.
Returns an SbVec3s instance which is the components of vector v multiplied with d.
Returns an SbVec3s instance which is the components of vector v multiplied with d.
Returns an SbVec3s instance which is the components of vector v multiplied with d.
Returns an SbVec3s instance which is the components of vector v multiplied with d.
Returns an SbVec3s instance which is the components of vector v divided on the scalar factor d.
Returns an SbVec3s instance which is the components of vector v divided on d.
Returns an SbVec3s instance which is the sum of vectors v1 and v2.
Returns an SbVec3s instance which is vector v2 subtracted from vector v1.
Returns 1 if v1 and v2 are exactly equal, 0 otherwise.
Returns 1 if v1 and v2 are not equal, 0 if they are equal.
Returns an SbVec3s instance which is the components of vector v multiplied with d.
Returns an SbVec3s instance which is the components of vector v multiplied with d.
Returns an SbVec3s instance which is the components of vector v multiplied with d.
Returns an SbVec3s instance which is the components of vector v multiplied with d.
Returns an SbVec3s instance which is the components of vector v divided on the scalar factor d.
Returns an SbVec3s instance which is the components of vector v divided on d.
Returns an SbVec3s instance which is the sum of vectors v1 and v2.
Returns an SbVec3s instance which is vector v2 subtracted from vector v1.
Returns 1 if v1 and v2 are exactly equal, 0 otherwise.
Returns 1 if v1 and v2 are not equal, 0 if they are equal.
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Jan 22 2024 for Coin by Doxygen. 1.10.0