Lines Matching refs:operator
39 void operator+=(const Vector2& v) {
44 void operator-=(const Vector2& v) {
49 void operator+=(const float v) {
54 void operator-=(const float v) {
59 void operator/=(float s) {
64 void operator*=(float s) {
69 Vector2 operator+(const Vector2& v) const { return (Vector2){x + v.x, y + v.y}; }
71 Vector2 operator-(const Vector2& v) const { return (Vector2){x - v.x, y - v.y}; }
73 Vector2 operator/(float s) const { return (Vector2){x / s, y / s}; }
75 Vector2 operator*(float s) const { return (Vector2){x * s, y * s}; }
103 Vector3 operator+(const Vector3& v) const { return (Vector3){x + v.x, y + v.y, z + v.z}; }
105 Vector3 operator-(const Vector3& v) const { return (Vector3){x - v.x, y - v.y, z - v.z}; }
107 Vector3 operator/(float s) const { return (Vector3){x / s, y / s, z / s}; }
109 Vector3 operator*(float s) const { return (Vector3){x * s, y * s, z * s}; }