mirror of
https://github.com/bloeys/gglm.git
synced 2025-12-29 13:38:20 +00:00
Rename At->Get
This commit is contained in:
@ -29,7 +29,7 @@ func (ms MatSize) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Mat interface {
|
type Mat interface {
|
||||||
At(row, col int) float32
|
Get(row, col int) float32
|
||||||
Set(row, col int, val float32)
|
Set(row, col int, val float32)
|
||||||
Size() MatSize
|
Size() MatSize
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,7 +11,7 @@ type Mat2 struct {
|
|||||||
Data [4]float32
|
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]
|
return m.Data[row*2+col]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ type Mat3 struct {
|
|||||||
Data [9]float32
|
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]
|
return m.Data[row*3+col]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ type Mat4 struct {
|
|||||||
Data [16]float32
|
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]
|
return m.Data[row*4+col]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user