Sets this with a unit vector in the given standard feature direction.
| 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); |
| 117 | xcoord = cos(radians); |
| 118 | ycoord = sin(radians); |
| 119 | } |
| 120 | |
| 121 | // Converts an angle in radians (from ICOORD::angle or FCOORD::angle) to a |
| 122 | // standard feature direction as an unsigned angle in 256ths of a circle |
no outgoing calls
no test coverage detected