3d vector determination problem - Programmers Heaven

#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

# 3d vector determination problem

Posts: 7Member
Hi, here's my problem

i have a point (x,y,z) which is a look-from point of a camera
and the angles around the axis (AngX,AngY,AngZ). I want to determine the vector of the direction of where the camera look, or the lookAt point.
I'm not good at all in mathematics
i hope my english is not too bad
Thkx

• Posts: 272Member
OK, you're talking about some basic linear algebra. I'll try to explain this to you.
If you have a point (x,y,z), and you also know the direction that it is facing,
then you can express the entire statement as a single equation:
r = (x, y, z) + t(a, b, c)
where the (a, b, c) is a vector that describes the direction that the camera is
facing, from the origin (0, 0, 0).
So once you have worked out the simplest direction vector for the camera, then
you have an equation of a line for the camera's view, and you can use that
equation to find the point that is seen by the camera.
To find any general point, then just replace t with a number and you will get a
point, and if you have a point, see if it can fit into the equation, and if it can
then the camera can see it.
If you have any more problems with this, send an e-mail to
[email protected]

• Posts: 42Member
: Hi, here's my problem
:
: i have a point (x,y,z) which is a look-from point of a camera
: and the angles around the axis (AngX,AngY,AngZ). I want to determine the vector of the direction of where the camera look, or the lookAt point.
: I'm not good at all in mathematics