minor code style change

This commit is contained in:
faiface 2017-06-11 14:06:45 +02:00
parent 12df203229
commit 99a43ec1a9
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ func (u Vec) Rotated(angle float64) Vec {
// Normal returns a vector normal to u. Equivalent to u.Rotated(math.Pi / 2), but faster.
func (u Vec) Normal() Vec {
return Vec{X: u.Y, Y: -u.X}
return Vec{u.Y, -u.X}
}
// Dot returns the dot product of vectors u and v.