s3d_angle_to_cam(3)

s3d_angle_to_cam3

Calculate angle between vector and cam

Usage

#include <s3d.h>

float s3d_angle_to_cam(const float obj_pos[], const float cam_pos[], float *angle_rad);

Overview

Given obj_pos and cam_pos in the format float[3], angle_rad about which angle the object should be rotated around the y-axis so that it faces the camera. This might become handy if you have some text floating in space and want it to face the camera. http://en.wikipedia.org/wiki/Vector_(spatial)

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7–13

Author

Simon Wunderlich

Author of s3d

From s3d-doc 0.2.2.1-7 in Debian 13 (Trixie). Parsed by carta from the page's man source.