@@ -234,7 +234,7 @@ impl ops::Mul<Matrix> for Matrix {
234234 type Output = Matrix ;
235235
236236 fn mul ( self , rhs : Matrix ) -> Self :: Output {
237- ( & self ) . multiply ( & rhs)
237+ Matrix :: multiply ( & self , & rhs)
238238 }
239239}
240240impl ops:: MulAssign < Matrix > for Matrix {
@@ -246,32 +246,38 @@ impl ops::MulAssign<Matrix> for Matrix {
246246impl ops:: Mul < Vec4 > for Matrix {
247247 type Output = Vec4 ;
248248
249+ /// Transforms this `Vec4` using the provided matrix.
250+ /// See [Matrix::transform_vec4].
249251 fn mul ( self , rhs : Vec4 ) -> Self :: Output {
250- ( & self ) . transform_vec4 ( & rhs)
252+ Matrix :: transform_vec4 ( & self , & rhs)
251253 }
252254}
253255
254256impl ops:: Mul < Vec3 > for Matrix {
255257 type Output = Vec3 ;
256258
259+ /// Transforms this `Vec3` using the provided matrix.
260+ /// See [Matrix::transform_vec3].
257261 fn mul ( self , rhs : Vec3 ) -> Self :: Output {
258- ( & self ) . transform_vec3 ( & rhs)
262+ Matrix :: transform_vec3 ( & self , & rhs)
259263 }
260264}
261265
262266impl ops:: Mul < Point > for Matrix {
263267 type Output = Point ;
264268
265269 fn mul ( self , rhs : Point ) -> Self :: Output {
266- ( & self ) . transform_point ( & rhs)
270+ Matrix :: transform_point ( & self , & rhs)
267271 }
268272}
269273
270274impl ops:: Mul < Point3D > for Matrix {
271275 type Output = Point3D ;
272276
277+ /// Transforms this point using the provided matrix.
278+ /// See [Matrix::transform_point3d].
273279 fn mul ( self , rhs : Point3D ) -> Self :: Output {
274- ( & self ) . transform_point3d ( & rhs)
280+ Matrix :: transform_point3d ( & self , & rhs)
275281 }
276282}
277283
0 commit comments