pub fn lookat<T: FloatScalar>(
eye: &Vector3<T>,
dest: &Vector3<T>,
up: &Vector3<T>,
) -> Matrix4<T>Expand description
Creates a view matrix looking from eye position to target.
ยงParameters
eye: Camera positiondest: Target position to look atup: Up vector (typically (0, 1, 0))
The resulting matrix transforms from world space to view space.