# How to calculate camera direction and up vector?

How to calculate the camera direction and up vector by the position and rotation?

import bpy

• Since it uses .to_quaternion, calling normalize should be unnecessary because a pure rotation preserves the length of a vector, which equals 1.0 in both of these cases. – pink vertex Jul 4 '14 at 15:32