Remove methods IsIdentity

This commit is contained in:
Hajime Hoshi 2014-12-26 04:02:34 +09:00
parent d53d55a629
commit 7ea4e19f58
4 changed files with 0 additions and 33 deletions

View File

@ -60,11 +60,6 @@ func (c *ColorMatrix) Concat(other ColorMatrix) {
*c = result
}
// IsIdentity returns a boolean indicating whether the color matrix is an identity.
func (c *ColorMatrix) IsIdentity() bool {
return isIdentity(c)
}
func (c *ColorMatrix) setElement(i, j int, element float64) {
c.es[i][j] = element
}

View File

@ -13,17 +13,3 @@
// limitations under the License.
package ebiten_test
import (
. "."
"testing"
)
func TestColorIdentity(t *testing.T) {
m := NewColorMatrix()
got := m.IsIdentity()
want := true
if want != got {
t.Errorf("matrix.IsIdentity() = %t, want %t", got, want)
}
}

View File

@ -53,11 +53,6 @@ func (g *GeometryMatrix) Concat(other GeometryMatrix) {
*g = result
}
// IsIdentity returns a boolean indicating whether the geometry matrix is an identity.
func (g *GeometryMatrix) IsIdentity() bool {
return isIdentity(g)
}
func (g *GeometryMatrix) setElement(i, j int, element float64) {
g.es[i][j] = element
}

View File

@ -19,15 +19,6 @@ import (
"testing"
)
func TestGeometryIdentity(t *testing.T) {
m := NewGeometryMatrix()
got := m.IsIdentity()
want := true
if want != got {
t.Errorf("matrix.IsIdentity() = %t, want %t", got, want)
}
}
func TestGeometryConcat(t *testing.T) {
matrix1 := ScaleGeometry(2, 2)
matrix2 := TranslateGeometry(1, 1)