clarify Rect doc
This commit is contained in:
parent
ce8408054d
commit
b8a287a654
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue