clarify Rect doc

This commit is contained in:
faiface 2017-05-21 19:38:21 +02:00
parent ce8408054d
commit b8a287a654
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ type Rect struct {
} }
// R returns a new Rect with given the Min and Max coordinates. // R returns a new Rect with given the Min and Max coordinates.
//
// Note that the returned rectangle is not automatically normalized.
func R(minX, minY, maxX, maxY float64) Rect { func R(minX, minY, maxX, maxY float64) Rect {
return Rect{ return Rect{
Min: V(minX, minY), Min: V(minX, minY),