VIEWDIR nged BRL-CAD BRL-CAD MGED Commands
viewdir Returns the direction vector using the current azimuth and elevation (AE).
`viewdir` -i

## DESCRIPTION

Returns the direction vector using the current azimuth and elevation as input. If the -i option is used the commmand will return the inverse directional vector. See also the `ae2dir`, `dir2ae` and `qvrot` commands.

## EXAMPLES

The example shows the use of the `viewdir` command to get the direction vector.

Find the current direction vector.

mged> `viewdir`

Returns the direction vector using the current azimuth and elevation.

## AUTHOR

BRL-CAD Team

## BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org