#include <OSGVector.h>
Inheritance diagram for osg::VectorInterface< ValueTypeT, StorageInterfaceT >:


Public Types | |
| typedef PointInterface< ValueTypeT, StorageInterfaceT > | Inherited |
| Parent type. | |
| typedef TypeConstants< ValueTypeT >::RealReturnType | RealReturnType |
| Used type if the returnvalue must be a real value. | |
| typedef ValueTypeT | ValueType |
| Value type. | |
| typedef Inherited | PntInterface |
| typedef VectorInterface< ValueTypeT, StorageInterfaceT > | Self |
Public Methods | |
Constructors | |
| VectorInterface (void) | |
| VectorInterface (const ValueTypeT *pVals) | |
| Constructor which takes a const value array. | |
| VectorInterface (ValueTypeT *pVals) | |
| Constructor which takes a const value array. | |
| template<class VectorT> | VectorInterface (const VectorT &vec) |
| Constructor which take a lot of types as it's argument :-). | |
| VectorInterface (const VectorInterface &source) | |
| VectorInterface (const ValueTypeT rVal1, const ValueTypeT rVal2) | |
| VectorInterface (const ValueTypeT rVal1, const ValueTypeT rVal2, const ValueTypeT rVal3) | |
| VectorInterface (const ValueTypeT rVal1, const ValueTypeT rVal2, const ValueTypeT rVal3, const ValueTypeT rVal4) | |
Destructor | |
| ~VectorInterface (void) | |
Common Math | |
| RealReturnType | length (void) const |
| Euclidean length of the vector. | |
| void | normalize (void) |
| Changes vector to be of unit length. | |
| VectorInterface | cross (const VectorInterface &vec) const |
| Returns the right handed cross-product for a given vector; This function is implemented for size 3 vectors only. | |
| VectorInterface | operator% (const VectorInterface &vec) const |
| Euclidean length of the vector. | |
| void | crossThis (const VectorInterface &vec) |
| Calculates the right handed cross-product with a given vector; This function is implemented for size 3 vectors only. | |
| ValueTypeT | dot (const VectorInterface &vec) const |
| Return the dot (inner) product for a given vector. | |
| ValueTypeT | operator * (const VectorInterface &vec) const |
| Euclidean length of the vector. | |
| ValueTypeT | dot (const PntInterface &pnt) const |
| Euclidean length of the vector. | |
| ValueTypeT | operator * (const PntInterface &pnt) const |
| Euclidean length of the vector. | |
| RealReturnType | enclosedAngle (const VectorInterface &vec) const |
| Returns the angle between this and another vector. | |
| RealReturnType | projectTo (const VectorInterface &toVec) |
| Euclidean length of the vector. | |
Math | |
| VectorInterface | operator- (const VectorInterface &vec) const |
| Component wise binary vector subtraction operator. | |
| VectorInterface | operator+ (const VectorInterface &vec) const |
| Component wise binary vector addition operator. | |
| VectorInterface | operator * (const ValueTypeT rVal) const |
| Component wise binary scalar multiplication. | |
| VectorInterface | operator- (void) const |
| Nondestructive unary negation, returns new vector. | |
Assignment | |
| VectorInterface & | operator= (const VectorInterface &source) |
Comparison | |
| bool | operator< (const VectorInterface &other) const |
| bool | operator== (const VectorInterface &other) const |
| Equal operator, using Eps as the tolerance. | |
| bool | operator!= (const VectorInterface &other) const |
| Not eual operator, using Eps as the tolerance. | |
Static Public Attributes | |
| const VectorInterface | Null |
|
|||||
|
Parent type.
Reimplemented from osg::PointInterface< ValueTypeT, StorageInterfaceT >. |
|
|||||
|
Used type if the returnvalue must be a real value.
Reimplemented from osg::PointInterface< ValueTypeT, StorageInterfaceT >. |
|
|||||
|
Value type.
Reimplemented from osg::PointInterface< ValueTypeT, StorageInterfaceT >. |
|
|||||
|
|
|
|||||
|
Reimplemented from osg::PointInterface< ValueTypeT, StorageInterfaceT >. |
|
||||||||||
|
|
|
||||||||||
|
Constructor which takes a const value array. Be shure the array size at least as large as the vector size. |
|
||||||||||
|
Constructor which takes a const value array. Be shure the array size at least as large as the vector size. |
|
||||||||||||||
|
Constructor which take a lot of types as it's argument :-). The argument type must provide a _iSize enum entry, a *getValueRef(void) function and the value types must be convertable to the current one. The main problem is that through the constructor VecBase(const ValueTypeT *pVals); and the following cast operator const ValueTypeT *(void); you are able to to the following : void foo(void)
{
ClassWithValueTypeT_*_Cast v2f;
Vec4f v4f(v2f);
}
Thanks to that ****** MS Compiler the code must be included within the header file, but at least it seems work ;-) (GV) |
|
||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
Euclidean length of the vector.
|
|
||||||||||
|
Changes vector to be of unit length.
|
|
||||||||||
|
Returns the right handed cross-product for a given vector; This function is implemented for size 3 vectors only.
|
|
||||||||||
|
Euclidean length of the vector.
|
|
||||||||||
|
Calculates the right handed cross-product with a given vector; This function is implemented for size 3 vectors only.
|
|
||||||||||
|
Return the dot (inner) product for a given vector.
|
|
||||||||||
|
Euclidean length of the vector.
|
|
||||||||||
|
Euclidean length of the vector.
|
|
||||||||||
|
Euclidean length of the vector.
|
|
||||||||||
|
Returns the angle between this and another vector.
|
|
||||||||||
|
Euclidean length of the vector.
|
|
||||||||||
|
Component wise binary vector subtraction operator.
|
|
||||||||||
|
Component wise binary vector addition operator.
|
|
||||||||||
|
Component wise binary scalar multiplication.
Reimplemented from osg::PointInterface< ValueTypeT, StorageInterfaceT >. |
|
||||||||||
|
Nondestructive unary negation, returns new vector.
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
Equal operator, using Eps as the tolerance.
|
|
||||||||||
|
Not eual operator, using Eps as the tolerance.
|
|
|||||
|
Reimplemented from osg::PointInterface< ValueTypeT, StorageInterfaceT >. |
1.2.16