make doc more readable
This commit is contained in:
parent
35a14c2d18
commit
fa57a41d2a
|
@ -186,9 +186,11 @@ func (r Rect) Moved(delta Vec) Rect {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resized returns the Rect resized to the given size while keeping the position of the given anchor.
|
// Resized returns the Rect resized to the given size while keeping the position of the given anchor.
|
||||||
|
//
|
||||||
// r.Resized(r.Min, size) // resizes while keeping the position of the lower-left corner
|
// r.Resized(r.Min, size) // resizes while keeping the position of the lower-left corner
|
||||||
// r.Resized(r.Max, size) // same with the top-right corner
|
// r.Resized(r.Max, size) // same with the top-right corner
|
||||||
// r.Resized(r.Center(), size) // resizes around the center
|
// r.Resized(r.Center(), size) // resizes around the center
|
||||||
|
//
|
||||||
// This function does not make sense for size of zero area and will panic. Use ResizeMin in the case
|
// This function does not make sense for size of zero area and will panic. Use ResizeMin in the case
|
||||||
// of zero area.
|
// of zero area.
|
||||||
func (r Rect) Resized(anchor, size Vec) Rect {
|
func (r Rect) Resized(anchor, size Vec) Rect {
|
||||||
|
|
Loading…
Reference in New Issue