Fixed so corners are provided in anticlockwise pattern
This commit is contained in:
parent
128ec4d4c0
commit
9d07d69429
|
@ -526,8 +526,8 @@ func (r Rect) IntersectLine(l Line) Vec {
|
||||||
func (r Rect) Vertices() [4]Vec {
|
func (r Rect) Vertices() [4]Vec {
|
||||||
return [4]Vec{
|
return [4]Vec{
|
||||||
r.Min,
|
r.Min,
|
||||||
r.Max,
|
|
||||||
V(r.Min.X, r.Max.Y),
|
V(r.Min.X, r.Max.Y),
|
||||||
|
r.Max,
|
||||||
V(r.Max.X, r.Min.Y),
|
V(r.Max.X, r.Min.Y),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue