]> Cypherpunks repositories - gostls13.git/commit
Add Rectangle.Eq and Point.In.
authorRoger Peppe <rogpeppe@gmail.com>
Fri, 28 May 2010 00:19:47 +0000 (17:19 -0700)
committerRob Pike <r@golang.org>
Fri, 28 May 2010 00:19:47 +0000 (17:19 -0700)
commit1fda1323d49b25ab8c757b70066bb0b6376698e1
treed51dace3c31f61bb603089c113ee88213dfde9c3
parentb5402023abc94f0f295b10bf7cfc911f44b97ec2
Add Rectangle.Eq and Point.In.
Fix Rectangle.Clip.
It could return a non-canonical rectangle if its arguments
did not overlap.
e.g. Rect(0, 0, 10, 10).Clip(Rect(0, 20, 10, 30)) -> Rect(0, 20, 10, 10)

R=rsc, r
CC=golang-dev, golang-dev
https://golang.org/cl/1290041
src/pkg/exp/draw/arith.go