Lines Matching defs:convert
538 inline DstType convert (SrcType src)
549 template <> inline bool convert<float, bool> (float src) { return src != 0.0f; }
550 template <> inline bool convert<int, bool> (int src) { return src != 0; }
551 template <> inline bool convert<bool, bool> (bool src) { return src; }
552 template <> inline float convert<bool, float> (bool src) { return src ? 1.0f : 0.0f; }
553 template <> inline int convert<bool, int> (bool src) { return src ? 1 : 0; }
555 template <> inline int convert<float, int> (float src)
570 dstMin = convert<SrcType, DstType>(srcMin);
571 dstMax = convert<SrcType, DstType>(srcMax);
597 // Returns whether it is possible to convert some SrcType value range to given DstType valueRange
604 de::inRange(convert<SrcType, DstType>(sMin), min, max) &&
605 de::inRange(convert<SrcType, DstType>(sMax), min, max);
641 dst.as<DstType>(ndx) = convert<SrcType, DstType>(src.as<SrcType>(ndx));