Lines Matching defs:operator
18 bool operator==(const SkV2 v) const { return x == v.x && y == v.y; }
19 bool operator!=(const SkV2 v) const { return !(*this == v); }
25 SkV2 operator-() const { return {-x, -y}; }
26 SkV2 operator+(SkV2 v) const { return {x+v.x, y+v.y}; }
27 SkV2 operator-(SkV2 v) const { return {x-v.x, y-v.y}; }
29 SkV2 operator*(SkV2 v) const { return {x*v.x, y*v.y}; }
30 friend SkV2 operator*(SkV2 v, SkScalar s) { return {v.x*s, v.y*s}; }
31 friend SkV2 operator*(SkScalar s, SkV2 v) { return {v.x*s, v.y*s}; }
32 friend SkV2 operator/(SkV2 v, SkScalar s) { return {v.x/s, v.y/s}; }
34 void operator+=(SkV2 v) { *this = *this + v; }
35 void operator-=(SkV2 v) { *this = *this - v; }
36 void operator*=(SkV2 v) { *this = *this * v; }
37 void operator*=(SkScalar s) { *this = *this * s; }
38 void operator/=(SkScalar s) { *this = *this / s; }
54 bool operator==(const SkV3& v) const {
57 bool operator!=(const SkV3& v) const { return !(*this == v); }
65 SkV3 operator-() const { return {-x, -y, -z}; }
66 SkV3 operator+(const SkV3& v) const { return { x + v.x, y + v.y, z + v.z }; }
67 SkV3 operator-(const SkV3& v) const { return { x - v.x, y - v.y, z - v.z }; }
69 SkV3 operator*(const SkV3& v) const {
72 friend SkV3 operator*(const SkV3& v, SkScalar s) {
75 friend SkV3 operator*(SkScalar s, const SkV3& v) { return v*s; }
77 void operator+=(SkV3 v) { *this = *this + v; }
78 void operator-=(SkV3 v) { *this = *this - v; }
79 void operator*=(SkV3 v) { *this = *this * v; }
80 void operator*=(SkScalar s) { *this = *this * s; }
96 bool operator==(const SkV4& v) const {
99 bool operator!=(const SkV4& v) const { return !(*this == v); }
101 SkV4 operator-() const { return {-x, -y, -z, -w}; }
102 SkV4 operator+(const SkV4& v) const { return { x + v.x, y + v.y, z + v.z, w + v.w }; }
103 SkV4 operator-(const SkV4& v) const { return { x - v.x, y - v.y, z - v.z, w - v.w }; }
105 SkV4 operator*(const SkV4& v) const {
108 friend SkV4 operator*(const SkV4& v, SkScalar s) {
111 friend SkV4 operator*(SkScalar s, const SkV4& v) { return v*s; }
116 float operator[](int i) const {
120 float& operator[](int i) {
137 SkM44& operator=(const SkM44& src) = default;
235 bool operator==(const SkM44& other) const;
236 bool operator!=(const SkM44& other) const {
331 friend SkM44 operator*(const SkM44& a, const SkM44& b) {
383 SkV4 operator*(const SkV4& v) const {
386 SkV3 operator*(SkV3 v) const {