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

Assignment Help:

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


Related Discussions:- Rotation about the origin - 2-d and 3-d transformations

Photo editing, Photo Editing Photo-editing programs are paint programs...

Photo Editing Photo-editing programs are paint programs: it just like they comprise several sophisticated functions for altering images and for scheming aspects of the image,

Explain the merits and demerits of penetration techniques, Explain the meri...

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

Reflection, determine the tranformation matrix for reflection,computer grap...

determine the tranformation matrix for reflection,computer graphics

Line drawing display - random scan display device, Line Drawing Display - R...

Line Drawing Display - Random Scan Display Device The display through this system is termed as Line Drawing Display. The sequence controls the subsequent stages, demonstrated

Convert the intensity value of the current pixel, Step1:  Read a text file ...

Step1:  Read a text file which we want to hide. Step2:  Transform it into an array of its binary value. Step3: Transform this array into its equivalent one dimensional array

Define the meaning of abbreviations of cmyk and rgb, QUESTION You are e...

QUESTION You are employed as a graphics designer in an advertising agency and recently completed a brochure artwork for a client. You need to send the file for printing before

Variation of intensity - modeling and rendering, Variation of Intensity - M...

Variation of Intensity - Modeling and Rendering According to the phong model the variation of Intensity (I) along with α (since I α cos n α) is: i) for shiny surface (

What are the features found in CAD, What are the features found in CAD ...

What are the features found in CAD Features generally found in a CAD package involve: - 2D and 3D modelling - Wire frame - Library of parts that can be used in new dra

Briefly explain how the median filter works, QUESTION 1 (a) Write a run...

QUESTION 1 (a) Write a run method in Image J environment for the following cases Contrast and Brightness Histogram Generation Histogram Equalisation   (b)

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd