remove Vec.YX because it's unreadable
This commit is contained in:
parent
31d4f08173
commit
2e8f5fb05a
|
@ -73,11 +73,6 @@ func (u Vec) XY() (x, y float64) {
|
||||||
return real(u), imag(u)
|
return real(u), imag(u)
|
||||||
}
|
}
|
||||||
|
|
||||||
// YX returns the components of the vector in two return values in reversed order.
|
|
||||||
func (u Vec) YX() (y, x float64) {
|
|
||||||
return imag(u), real(u)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Len returns the length of the vector u.
|
// Len returns the length of the vector u.
|
||||||
func (u Vec) Len() float64 {
|
func (u Vec) Len() float64 {
|
||||||
return cmplx.Abs(complex128(u))
|
return cmplx.Abs(complex128(u))
|
||||||
|
|
Loading…
Reference in New Issue