Searched refs:Vec2 (Results 1 – 1 of 1) sorted by relevance
24 class Vec2{26 Vec2(T inputX, T inputY) { in Vec2() function31 Vec2() {} in Vec2() function33 inline Vec2<T> operator+ (const Vec2<T> ¶m) const {34 Vec2<T> temp(mX + param.x(), mY + param.y());38 inline Vec2<T> operator- (const Vec2<T> ¶m) const {39 Vec2<T> temp(mX - param.x(), mY - param.y());43 inline Vec2<float> operator/ (const int param) const {45 return Vec2<float>(static_cast<float>(mX) / static_cast<float>(param),50 float squareDistance(const Vec2<U> ¶m) const { in squareDistance()[all …]