@@ -234,7 +234,7 @@ impl ops::Mul<Matrix> for Matrix {
234
234
type Output = Matrix ;
235
235
236
236
fn mul ( self , rhs : Matrix ) -> Self :: Output {
237
- ( & self ) . multiply ( & rhs)
237
+ Matrix :: multiply ( & self , & rhs)
238
238
}
239
239
}
240
240
impl ops:: MulAssign < Matrix > for Matrix {
@@ -246,32 +246,38 @@ impl ops::MulAssign<Matrix> for Matrix {
246
246
impl ops:: Mul < Vec4 > for Matrix {
247
247
type Output = Vec4 ;
248
248
249
+ /// Transforms this `Vec4` using the provided matrix.
250
+ /// See [Matrix::transform_vec4].
249
251
fn mul ( self , rhs : Vec4 ) -> Self :: Output {
250
- ( & self ) . transform_vec4 ( & rhs)
252
+ Matrix :: transform_vec4 ( & self , & rhs)
251
253
}
252
254
}
253
255
254
256
impl ops:: Mul < Vec3 > for Matrix {
255
257
type Output = Vec3 ;
256
258
259
+ /// Transforms this `Vec3` using the provided matrix.
260
+ /// See [Matrix::transform_vec3].
257
261
fn mul ( self , rhs : Vec3 ) -> Self :: Output {
258
- ( & self ) . transform_vec3 ( & rhs)
262
+ Matrix :: transform_vec3 ( & self , & rhs)
259
263
}
260
264
}
261
265
262
266
impl ops:: Mul < Point > for Matrix {
263
267
type Output = Point ;
264
268
265
269
fn mul ( self , rhs : Point ) -> Self :: Output {
266
- ( & self ) . transform_point ( & rhs)
270
+ Matrix :: transform_point ( & self , & rhs)
267
271
}
268
272
}
269
273
270
274
impl ops:: Mul < Point3D > for Matrix {
271
275
type Output = Point3D ;
272
276
277
+ /// Transforms this point using the provided matrix.
278
+ /// See [Matrix::transform_point3d].
273
279
fn mul ( self , rhs : Point3D ) -> Self :: Output {
274
- ( & self ) . transform_point3d ( & rhs)
280
+ Matrix :: transform_point3d ( & self , & rhs)
275
281
}
276
282
}
277
283
0 commit comments