mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
Fix comments
This commit is contained in:
parent
cb510fafa7
commit
742c7ad854
@ -28,6 +28,7 @@ const ColorMatrixDim = 5
|
||||
// Before applying a matrix, a color is un-multiplied, and after applying the matrix,
|
||||
// the color is multiplied again.
|
||||
type ColorMatrix struct {
|
||||
// es represents elements.
|
||||
es [ColorMatrixDim - 1][ColorMatrixDim]float64
|
||||
}
|
||||
|
||||
|
@ -20,8 +20,8 @@ import (
|
||||
)
|
||||
|
||||
func TestColorIdentity(t *testing.T) {
|
||||
ebiten := ColorMatrixI()
|
||||
got := ebiten.IsIdentity()
|
||||
m := ColorMatrixI()
|
||||
got := m.IsIdentity()
|
||||
want := true
|
||||
if want != got {
|
||||
t.Errorf("matrix.IsIdentity() = %t, want %t", got, want)
|
||||
|
@ -23,6 +23,7 @@ const GeometryMatrixDim = 3
|
||||
|
||||
// A GeometryMatrix represents a matrix to transform geometry when rendering an image.
|
||||
type GeometryMatrix struct {
|
||||
// es represents elements.
|
||||
es [GeometryMatrixDim - 1][GeometryMatrixDim]float64
|
||||
}
|
||||
|
||||
|
@ -20,8 +20,8 @@ import (
|
||||
)
|
||||
|
||||
func TestGeometryIdentity(t *testing.T) {
|
||||
ebiten := GeometryMatrixI()
|
||||
got := ebiten.IsIdentity()
|
||||
m := GeometryMatrixI()
|
||||
got := m.IsIdentity()
|
||||
want := true
|
||||
if want != got {
|
||||
t.Errorf("matrix.IsIdentity() = %t, want %t", got, want)
|
||||
|
Loading…
Reference in New Issue
Block a user