소스 검색

improved docs

Daniel Salvadori 7 년 전
부모
커밋
161dbc58dd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      math32/matrix4.go

+ 2 - 2
math32/matrix4.go

@@ -270,7 +270,7 @@ func (m *Matrix4) Multiply(other *Matrix4) *Matrix4 {
 	return m.MultiplyMatrices(m, other)
 }
 
-// MultiplyMatrices multiply matrix a by b storing the result in this matrix.
+// MultiplyMatrices multiply matrix a by b (i.e. b*a) storing the result in this matrix.
 // Returns pointer to this updated matrix.
 func (m *Matrix4) MultiplyMatrices(a, b *Matrix4) *Matrix4 {
 
@@ -471,7 +471,7 @@ func (m *Matrix4) GetInverse(src *Matrix4) error {
 
 	if det == 0 {
 		m.Identity()
-		return errors.New("Cannot inverse matrix")
+		return errors.New("cannot invert matrix")
 	}
 
 	detInv := 1 / det