Skip to content

Commit fc3fd40

Browse files
committed
Fixed return type
1 parent 729f612 commit fc3fd40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/vsg/maths/mat2.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,16 @@ namespace vsg
138138
}
139139

140140
template<typename T>
141-
t_vec3<T> operator*(const t_mat2<T>& lhs, const t_vec2<T>& rhs)
141+
t_vec2<T> operator*(const t_mat2<T>& lhs, const t_vec2<T>& rhs)
142142
{
143-
return t_vec3<T>((lhs[0][0] * rhs[0] + lhs[1][0] * rhs[1]),
143+
return t_vec2<T>((lhs[0][0] * rhs[0] + lhs[1][0] * rhs[1]),
144144
(lhs[0][1] * rhs[0] + lhs[1][1] * rhs[1]));
145145
}
146146

147147
template<typename T>
148-
t_vec3<T> operator*(const t_vec2<T>& lhs, const t_mat2<T>& rhs)
148+
t_vec2<T> operator*(const t_vec2<T>& lhs, const t_mat2<T>& rhs)
149149
{
150-
return t_vec3<T>(lhs[0] * rhs[0][0] + lhs[1] * rhs[0][1],
150+
return t_vec2<T>(lhs[0] * rhs[0][0] + lhs[1] * rhs[0][1],
151151
lhs[0] * rhs[1][0] + lhs[1] * rhs[1][1]);
152152
}
153153
} // namespace vsg

0 commit comments

Comments
 (0)