3-D Coordinate System: - Locations Are Defined by X, Y, Z
3-D Coordinate System: - Locations Are Defined by X, Y, Z
3-D Coordinate System: - Locations Are Defined by X, Y, Z
P = (x, y, z)
Distance between Two 3D Points
9
2D rotation matrix
10
2D scaling matrix
11
Inverse transformations
Inverse translation
Inverse rotation
Inverse scaling
12
3D Translation
x' 1 0 0 0 x
y ' 0 cos sin 0 y
.
z ' 0 sin cos 0 z
1 0 0 0 1 1
3D Rotation about y-axis
• ( Sx = Sy = Sz)
Differential Scaling
• We do not preserve the original shape of an
object with a differential scaling
S x 0 0 0
0 Sy 0 0
0 0 Sz 0
0 0 0 1
3D Scaling w.r.t. a fixed position
• Translate the fixed point to the origin.
• Scale the object relative to the coordinate origin
• Translate the fixed point back to its original
position
3D Reflection
• In general, three-dimensional reflection
matrices are set up similarly to those for two
dimensions. Reflections relative to a given axis are
equivalent to 180 degree rotations.