Returns the standard feature direction corresponding to this. See binary_angle_plus_pi below for a description of the direction.
| 109 | // Returns the standard feature direction corresponding to this. |
| 110 | // See binary_angle_plus_pi below for a description of the direction. |
| 111 | uinT8 FCOORD::to_direction() const { |
| 112 | return binary_angle_plus_pi(angle()); |
| 113 | } |
| 114 | // Sets this with a unit vector in the given standard feature direction. |
| 115 | void FCOORD::from_direction(uinT8 direction) { |
| 116 | double radians = angle_from_direction(direction); |
no test coverage detected