Rotation about the origin - 2-d and 3-d transformations, Computer Graphics

Rotation about the origin - 2-d and 3-d transformations

Specified a 2-D point P(x,y), which we need to rotate, along with respect to the origin O. The vector OP has a length 'r' and making a +ive or anticlockwise angle φ with respect to x-axis.

 Suppose P' (x'y') be the outcome of rotation of point P by an angle θ regarding the origin that is demonstrated in Figure 3.

1337_Rotation about the origin - 2-d and 3-d transformations.png

P(x,y) = P(r.cos φ,r.sin φ)

P'(x',y')=P[r.cos(φ+ θ),rsin(φ+ θ)]

The coordinates of P' are as:

x'=r.cos(θ+ φ)=r(cos θ cos φ -sin θ sin φ)

=x.cos θ -y.sin θ     (where x=rcosφ and y=rsinφ)

As like;

y'= rsin(θ+ φ)=r(sinθ cosφ + cosθ.sinφ)

=xsinθ+ycosθ

Hence,

1628_Rotation about the origin - 2-d and 3-d transformations 1.png

Hence, we have acquired the new coordinate of point P after the rotation. Within matrix form, the transformation relation among P' and P is specified by:

346_Rotation about the origin - 2-d and 3-d transformations 2.png

There is P'=P.Rq                                               ---------(5)

Here P'and P represents object points in 2-Dimentional Euclidean system and Rq is transformation matrix for anti-clockwise Rotation.

In terms of Homogeneous Coordinates system, equation (5) becomes as

2409_Rotation about the origin - 2-d and 3-d transformations 3.png

There is P'h=Ph.Rq,                                                     ---------(7)

Here P'h and Ph   represent object points, after and before needed transformation, in Homogeneous Coordinates and Rq is termed as homogeneous transformation matrix for anticlockwise  or =ive Rotation. Hence, P'h, the new coordinates of a transformed object, can be determined by multiplying previous object coordinate matrix, Ph, along with the transformation matrix for Rotation Rq.

Keep in mind that for clockwise rotation we have to put q = -q, hence the rotation matrix Rq , in Homogeneous Coordinates system, becomes:

1007_Rotation about the origin - 2-d and 3-d transformations 4.png

Posted Date: 4/3/2013 5:18:10 AM | Location : United States







Related Discussions:- Rotation about the origin - 2-d and 3-d transformations, Assignment Help, Ask Question on Rotation about the origin - 2-d and 3-d transformations, Get Answer, Expert's Help, Rotation about the origin - 2-d and 3-d transformations Discussions

Write discussion on Rotation about the origin - 2-d and 3-d transformations
Your posts are moderated
Related Questions
Homogeneous Coordinate Systems - 2-d and 3-d transformations Suppose P(x,y) be any point in 2-D Euclidean (Cartesian) system. In HC System, we add a third coordinate to a poin

Three Dimensional Transformations A 3D geometric transformation is used extensively in object modelling and rendering.2D transformations are naturally extended to 3D situations

Explain the merits and demerits of Penetration techniques. The merits and demerits of the Penetration techniques are as follows:     It is an inexpensive method.     It h

Q. Explain about Unified Memory Architecture? UMA signifies Unified Memory Architecture. It is an architecture that reduces the cost of PC construction.  In this a part of main

MULTIMEDIA TOOLS : In this sense, we will emphasize on various tools utilized in the field of multimedia. Basic Tools: The fundamental toolset for building multimedia p

Parallel Projection - viewing transformation Parallel projection methods are utilized by engineers to make working drawings of an object that preserves its true shape. In t

Write a program in C/C++ using OpenGL to create (without using built in function) a square by implementing shear algorithm along 1. X-axis, 2.Y-axis.

Q.   Describe different types of parallel and perspective projection used in computer graphics.

Relation between 2-D Euclidean system and Homogeneous coordinate system Suppose that P(x,y) be any point in 2-D Euclidean system. In HCS, we add a third coordinate to the poin

Scan Line Algorithm A scan line algorithm determines the overlap intervals of the polygon with each scan line to obtain interior points of the polygon for assigning those point