mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
Remove methods IsIdentity
This commit is contained in:
parent
d53d55a629
commit
7ea4e19f58
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user