mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Bug fix: Rename GeometryDim -> GeometryMatrixDim
This commit is contained in:
parent
ab47f14124
commit
ed46099c1e
@ -20,15 +20,15 @@ import (
|
||||
"math"
|
||||
)
|
||||
|
||||
const GeometryDim = 3
|
||||
const GeometryMatrixDim = 3
|
||||
|
||||
type GeometryMatrix struct {
|
||||
Elements [GeometryDim - 1][GeometryDim]float64
|
||||
Elements [GeometryMatrixDim - 1][GeometryMatrixDim]float64
|
||||
}
|
||||
|
||||
func GeometryMatrixI() GeometryMatrix {
|
||||
return GeometryMatrix{
|
||||
[GeometryDim - 1][GeometryDim]float64{
|
||||
[GeometryMatrixDim - 1][GeometryMatrixDim]float64{
|
||||
{1, 0, 0},
|
||||
{0, 1, 0},
|
||||
},
|
||||
@ -36,7 +36,7 @@ func GeometryMatrixI() GeometryMatrix {
|
||||
}
|
||||
|
||||
func (g *GeometryMatrix) dim() int {
|
||||
return GeometryDim
|
||||
return GeometryMatrixDim
|
||||
}
|
||||
|
||||
func (g *GeometryMatrix) Concat(other GeometryMatrix) {
|
||||
|
Loading…
Reference in New Issue
Block a user