File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ namespace RE
1919 bool operator <(const NiPoint3& a_rhs) const ;
2020 NiPoint3 operator +(const NiPoint3& a_rhs) const ;
2121 NiPoint3 operator -(const NiPoint3& a_rhs) const ;
22- float operator *(const NiPoint3& a_rhs) const ;
22+ NiPoint3 operator *(const NiPoint3& a_rhs) const ;
23+ NiPoint3 operator /(const NiPoint3& a_rhs) const ;
2324 NiPoint3 operator +(float a_scalar) const ;
2425 NiPoint3 operator -(float a_scalar) const ;
2526 NiPoint3 operator *(float a_scalar) const ;
Original file line number Diff line number Diff line change @@ -39,9 +39,14 @@ namespace RE
3939 return NiPoint3 (x - a_rhs.x , y - a_rhs.y , z - a_rhs.z );
4040 }
4141
42- float NiPoint3::operator *(const NiPoint3& a_rhs) const
42+ NiPoint3 NiPoint3::operator *(const NiPoint3& a_rhs) const
4343 {
44- return x * a_rhs.x + y * a_rhs.y + z * a_rhs.z ;
44+ return NiPoint3 (x * a_rhs.x , y * a_rhs.y , z * a_rhs.z );
45+ }
46+
47+ NiPoint3 NiPoint3::operator /(const NiPoint3& a_rhs) const
48+ {
49+ return NiPoint3 (x / a_rhs.x , y / a_rhs.y , z / a_rhs.z );
4550 }
4651
4752 NiPoint3 NiPoint3::operator +(float a_scalar) const
You can’t perform that action at this time.
0 commit comments