Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 21, 2008, 10:05:05 PM (16 years ago)
Author:
landauf
Message:

added convert-operators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/util/MultiTypeMath.h

    r797 r834  
    8888        bool operator!=(const MultiTypeMath& mtm) const;
    8989
     90        inline operator orxonox::Vector2()     const { return this->vector2_;     }
     91        inline operator orxonox::Vector3()     const { return this->vector3_;     }
     92        inline operator orxonox::ColourValue() const { return this->colourvalue_; }
     93        inline operator orxonox::Quaternion()  const { return this->quaternion_;  }
     94        inline operator orxonox::Radian()      const { return this->radian_;      }
     95        inline operator orxonox::Degree()      const { return this->degree_;      }
     96
    9097        using MultiTypeString::setValue;
    9198        inline void setValue(const orxonox::Vector2&     value) { this->type_ = MT_vector2;     this->vector2_     = value; }
Note: See TracChangeset for help on using the changeset viewer.