Angle returns the angle in radians [0,2PI) between the x-axis and OP.
()
| 325 | |
| 326 | // Angle returns the angle in radians [0,2PI) between the x-axis and OP. |
| 327 | func (p Point) Angle() float64 { |
| 328 | return angleNorm(math.Atan2(p.Y, p.X)) |
| 329 | } |
| 330 | |
| 331 | // AngleBetween returns the angle in radians [-PI,PI] from OP to OQ. |
| 332 | func (p Point) AngleBetween(q Point) float64 { |