Bug fix: Rename GeometryDim -> GeometryMatrixDim

This commit is contained in:
Hajime Hoshi 2014-12-10 00:32:49 +09:00
parent ab47f14124
commit ed46099c1e

View File

@ -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) {