Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Összeadás
- inline void operator+= (const Vec3& other)
- {v[0]+=other.v[0]; v[1]+=other.v[1]; v[2]+=other.v[2];}
- inline Vec3 operator+ (const Vec3& other) const
- {return Vec3(v[0]+other.v[0], v[1]+other.v[1], v[2]+other.v[2]);}
- // Kivonás
- inline void operator-= (const Vec3& other)
- {v[0]-=other.v[0]; v[1]-=other.v[1]; v[2]-=other.v[2];}
- inline Vec3 operator- (const Vec3& other) const
- {return Vec3(v[0]-other.v[0], v[1]-other.v[1], v[2]-other.v[2]);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement