minor code style change
This commit is contained in:
parent
79c5d20194
commit
2a9b7e5210
|
@ -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.
|
// Normal returns a vector normal to u. Equivalent to u.Rotated(math.Pi / 2), but faster.
|
||||||
func (u Vec) Normal() Vec {
|
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.
|
// Dot returns the dot product of vectors u and v.
|
||||||
|
|
Loading…
Reference in New Issue