Rot90CCW rotates the line OP by 90 degrees CCW.
()
| 283 | |
| 284 | // Rot90CCW rotates the line OP by 90 degrees CCW. |
| 285 | func (p Point) Rot90CCW() Point { |
| 286 | return Point{-p.Y, p.X} |
| 287 | } |
| 288 | |
| 289 | // Rot rotates the line OP by phi radians CCW. |
| 290 | func (p Point) Rot(phi float64, p0 Point) Point { |
no outgoing calls