fix grammar in Vec doc
This commit is contained in:
parent
4abba37aa3
commit
9472b91565
|
@ -78,7 +78,7 @@ func (u Vec) Len() float64 {
|
||||||
return cmplx.Abs(complex128(u))
|
return cmplx.Abs(complex128(u))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Angle returns the angle between the vector u and the x-axis. The result is in the range [-Pi, Pi].
|
// Angle returns the angle between the vector u and the x-axis. The result is in range [-Pi, Pi].
|
||||||
func (u Vec) Angle() float64 {
|
func (u Vec) Angle() float64 {
|
||||||
return cmplx.Phase(complex128(u))
|
return cmplx.Phase(complex128(u))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue