affine: Optimization Equals

This commit is contained in:
Hajime Hoshi 2018-03-04 23:23:11 +09:00
parent cdfee9fd74
commit f1ba3e5894

View File

@ -139,6 +139,9 @@ func (c *ColorM) Equals(other *ColorM) bool {
rhsb = c.body
rhst = c.translate
}
if &lhsb == &rhsb && &lhst == &rhst {
return true
}
for i := range lhsb {
if lhsb[i] != rhsb[i] {