(position)
| 82 | } |
| 83 | |
| 84 | getPositionRadius (position) { |
| 85 | const x = this.props.origin.x - position.x; |
| 86 | const y = this.props.origin.y - position.y; |
| 87 | return Math.sqrt(x * x + y * y); |
| 88 | } |
| 89 | |
| 90 | trimAngleToValue (angle) { |
| 91 | return this.props.step * Math.round(angle / this.props.step); |