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