one more tiny doc change
This commit is contained in:
parent
3fcad7503f
commit
e6484064aa
|
@ -110,7 +110,7 @@ func (u Vec) Rotated(angle float64) Vec {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normal returns a vector normal to u. Equivalent to u.Rotated(math.Pi / 2).
|
// 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{X: u.Y, Y: -u.X}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue