get coordinate along specified axis
| 62 | |
| 63 | // get coordinate along specified axis |
| 64 | float coord( const GCommand& command, Axis axis ) |
| 65 | { |
| 66 | return ( axis == Axis::X ) ? command.x : |
| 67 | ( axis == Axis::Y ) ? command.y : command.z; |
| 68 | } |
| 69 | // get projection to the plane orthogonal to the specified axis |
| 70 | Vector2f project( const GCommand& command, Axis axis ) |
| 71 | { |
no outgoing calls
no test coverage detected