@@ -419,11 +419,11 @@ data class Mat4d(override var value: MutableList<Vec4d>) : Mat4x4t<Vec4d>(value)
419419
420420
421421 // TODO others
422- @JvmOverloads
423- fun scale (scale : Vec3d , res : Mat4d = Mat4d () ) = scale(scale.x, scale.y, scale.z, res)
422+ infix fun scale ( scale : Vec3d ) = scale(scale.x, scale.y, scale.z, Mat4d ())
423+ fun scale (scale : Vec3d , res : Mat4d ) = scale(scale.x, scale.y, scale.z, res)
424424
425- @JvmOverloads
426- fun scale (scale : Double , res : Mat4d = Mat4d () ) = scale(scale, scale, scale, res)
425+ infix fun scale ( scale : Double ) = scale(scale, scale, scale, Mat4d ())
426+ fun scale (scale : Double , res : Mat4d ) = scale(scale, scale, scale, res)
427427
428428 @JvmOverloads
429429 fun scale (scaleX : Double , scaleY : Double , scaleZ : Double , res : Mat4d = Mat4d ()) = glm.scale(res, this , scaleX, scaleY, scaleZ)
@@ -433,11 +433,11 @@ data class Mat4d(override var value: MutableList<Vec4d>) : Mat4x4t<Vec4d>(value)
433433 fun scaleAssign (scaleX : Double , scaleY : Double , scaleZ : Double ) = glm.scale(this , this , scaleX, scaleY, scaleZ)
434434
435435
436- @JvmOverloads
437- fun translate (translate : Vec3d , res : Mat4d = Mat4d () ) = translate(translate.x, translate.y, translate.z, res)
436+ infix fun translate ( translate : Vec3d ) = translate(translate.x, translate.y, translate.z, Mat4d ())
437+ fun translate (translate : Vec3d , res : Mat4d ) = translate(translate.x, translate.y, translate.z, res)
438438
439- @JvmOverloads
440- fun translate (translate : Double , res : Mat4d = Mat4d () ) = translate(translate, translate, translate, res)
439+ infix fun translate ( translate : Double ) = translate(translate, translate, translate, Mat4d ())
440+ fun translate (translate : Double , res : Mat4d ) = translate(translate, translate, translate, res)
441441
442442 @JvmOverloads
443443 fun translate (translateX : Double , translateY : Double , translateZ : Double , res : Mat4d = Mat4d ()) =
0 commit comments