(scalar float32)
| 207 | } |
| 208 | |
| 209 | func (point Vector) Scale(scalar float32) Vector { |
| 210 | point.X *= scalar |
| 211 | point.Y *= scalar |
| 212 | return point |
| 213 | } |
| 214 | |
| 215 | func (point Vector) Unit() Vector { |
| 216 | l := point.Magnitude() |
no outgoing calls
no test coverage detected