Fixed so corners are provided in anticlockwise pattern

This commit is contained in:
Ben Cragg 2019-04-01 15:42:20 +01:00
parent 128ec4d4c0
commit 9d07d69429
1 changed files with 1 additions and 1 deletions

View File

@ -526,8 +526,8 @@ func (r Rect) IntersectLine(l Line) Vec {
func (r Rect) Vertices() [4]Vec {
return [4]Vec{
r.Min,
r.Max,
V(r.Min.X, r.Max.Y),
r.Max,
V(r.Max.X, r.Min.Y),
}
}