Rename At->Get

This commit is contained in:
bloeys
2021-11-05 05:47:41 +04:00
parent b2e9c48114
commit ad5d2c49c8
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ func (ms MatSize) String() string {
}
type Mat interface {
At(row, col int) float32
Get(row, col int) float32
Set(row, col int, val float32)
Size() MatSize
}

View File

@ -11,7 +11,7 @@ type Mat2 struct {
Data [4]float32
}
func (m *Mat2) At(row, col int) float32 {
func (m *Mat2) Get(row, col int) float32 {
return m.Data[row*2+col]
}

View File

@ -11,7 +11,7 @@ type Mat3 struct {
Data [9]float32
}
func (m *Mat3) At(row, col int) float32 {
func (m *Mat3) Get(row, col int) float32 {
return m.Data[row*3+col]
}

View File

@ -11,7 +11,7 @@ type Mat4 struct {
Data [16]float32
}
func (m *Mat4) At(row, col int) float32 {
func (m *Mat4) Get(row, col int) float32 {
return m.Data[row*4+col]
}