mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
affine: Add comments
This commit is contained in:
parent
2f1908b05c
commit
1a2a108639
@ -41,7 +41,7 @@ var (
|
||||
// Before applying a matrix, a color is un-multiplied, and after applying the matrix,
|
||||
// the color is multiplied again.
|
||||
//
|
||||
// The initial value is identity.
|
||||
// The nil and initial value is identity.
|
||||
type ColorM struct {
|
||||
// When elements is nil, this matrix is identity.
|
||||
// elements are immutable and a new array must be created when updating.
|
||||
|
@ -24,7 +24,9 @@ const GeoMDim = 3
|
||||
|
||||
// A GeoM represents a matrix to transform geometry when rendering an image.
|
||||
//
|
||||
// The initial value is identity.
|
||||
// The nil value is identity.
|
||||
//
|
||||
// Note that the initial value GeoM{} is no longer identity. TODO: This is confusing. Fix this.
|
||||
type GeoM struct {
|
||||
a float64
|
||||
b float64
|
||||
|
Loading…
Reference in New Issue
Block a user