![]() |
http://www.sim.no http://www.coin3d.org |
#include <Inventor/SbLinear.h>
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.
TGS Inventor ?.?
Public Member Functions | |
SbVec3s (void) | |
SbVec3s (const short v[3]) | |
SbVec3s (const short x, const short y, const short z) | |
int32_t | dot (const SbVec3s &v) const |
const short * | getValue (void) const |
void | getValue (short &x, short &y, short &z) const |
void | negate (void) |
SbVec3s & | setValue (const short v[3]) |
SbVec3s & | setValue (const short x, const short y, const short z) |
short & | operator[] (const int i) |
const short & | operator[] (const int i) const |
SbVec3s & | operator *= (int d) |
SbVec3s & | operator *= (double d) |
SbVec3s & | operator/= (int d) |
SbVec3s & | operator/= (double d) |
SbVec3s & | operator+= (const SbVec3s &u) |
SbVec3s & | operator-= (const SbVec3s &u) |
SbVec3s | operator- (void) const |
void | print (FILE *fp) const |
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) |
|
The default constructor does nothing. The vector coordinates will be uninitialized until you do a setValue() call. |
|
Constructs an SbVec3s instance with initial values from v. |
|
Constructs an SbVec3s instance with the initial vector endpoint set to <x,y,z>. |
|
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.
|
|
Returns the x, y and z coordinates of the vector.
|
|
Negate the vector (i.e. point it in the opposite direction). |
|
Set new coordinates for the vector from v. Returns reference to self.
|
|
Set new coordinates for the vector. Returns reference to self.
|
|
Index operator. Returns modifiable x, y or z coordinate of vector.
|
|
Index operator. Returns x, y or z coordinate of vector.
|
|
Multiply components of vector with value d. Returns reference to self. |
|
Multiply components of vector with value d. Returns reference to self. |
|
Divides components of vector with value d. Returns reference to self. |
|
Divides components of vector with value d. Returns reference to self. |
|
Adds this vector and vector u. Returns reference to self. |
|
Subtracts vector u from this vector. Returns reference to self. |
|
Non-destructive negation operator. Returns a new SbVec3s instance which points in the opposite direction of this vector.
|
|
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. |
Copyright © 1998-2004 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 28 00:04:39 2004 for Coin by Doxygen. 1.3.7