3D coordinates

  • Thread starter marensi
  • Start date
1
0
hello EveryBody,

In the 3D Coordinates I always find 4 parameters instead of 3.

A = (X, Y, Z, 1)

I wonder why?

thank you.
 
21,992
3,272
Please provide more information. We can't answer your question like this.
 

HallsofIvy

Science Advisor
Homework Helper
41,712
876
You don't. What you have there is NOT "3 D coordinates" but, rather, "3 D projective coordinates" (the name coming from "projective geometry" that I won't go into). In "projective coordinates" the point (x, y, z) is represented by (x, y, z, 1) with the understanding that if any calculation changes that last coordinate to something other than 1, say, a (and a cannot be 0), then we interpret (x, y, z, a) as meaning (x/a, y/a, z/a, 1).

Projective coordinates are often used in computer graphics because they have the property that translations, as well as rotations, can be be written as matrix multiplications.

In ordinary 3D coordinates, a rotation, by angle [itex]\theta[/itex] around the x-axis, is given by
[tex]\begin{bmatrix}cos(\theta) & -sin(\theta) & 0 \\ sin(\theta) & cos(\theta) & 0 \\ 0 & 0 & 1\end{bmatrix}\begin{bmatrix}x \\ y \\ z\end{bmatrix}[/tex]
with obvious changes for rotations around the y and z axes and all rotations given by products of such matrices.

In "projective coordinates" such a rotation would be just
[tex]\begin{bmatrix}cos(\theta) & -sin(\theta) & 0 & 0 \\ sin(\theta) & cos(\theta) & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1\end{bmatrix}\begin{bmatrix}x \\ y \\ z \\ 1\end{bmatrix}[/tex]

The translation, that moves (x, y, z, 1) to (x+ a,y+ b, z+ c, 1), in projective coordinates, is given by
[tex]\begin{bmatrix}1 & 0 & 0 & a \\ 0 & 1 & 0 & b \\ 0 & 0 & 1 & c \\ 0 & 0 & 0 & 1\end{bmatrix}\begin{bmatrix}x \\ y \\ z \\ 1\end{bmatrix}[/tex]
 
Last edited by a moderator:

Related Threads for: 3D coordinates

Replies
2
Views
3K
Replies
11
Views
3K
  • Posted
Replies
3
Views
4K
Replies
3
Views
2K
Replies
5
Views
2K
Replies
2
Views
2K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top