SourcePro® C++ 13.2 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
Converts between RWMathVec types with different datatypes. More...
#include <rw/math/mathvec.h>
Public Member Functions | |
RWConvertMathVec (const RWMathVec< From > &v) | |
operator RWMathVec< To > () | |
Class RWConvertMathVec<From,To> converts between RWMathVec types with different datatypes.
|
inline |
Constructs a new vector of type RWMathVec<To> that can be used anywhere as a type RWMathVec<To> . Note that a temporary array is created every time this constructor is invoked, but the conversion operator below can be used repeatedly without creating additional temporaries.
|
inline |
Automatic conversion operator that enables class RWConvertMathVec<From,To> to be used as an RWMathVec<To> . While the actual conversion takes place in the constructor, this operator provides a reference to that converted vector.
Copyright © 2015 Rogue Wave Software, Inc. All Rights Reserved. |