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

3d studio max -softwares for computer animation, 3DStudio Max -Softwares fo...

3DStudio Max -Softwares for computer animation The successor to 3-DStudio 3.0, 3-DStudio Max runs in WindowsNT. This is completely object-oriented, featuring new enhancements a

Polygon or area clipping algorithm, Polygon or Area Clipping Algorithm - Su...

Polygon or Area Clipping Algorithm - Sutherland-Hodgman Algorithm There are different algorithms as Liang-Barsky, Line clipping, Weiler-Atherton Polygon Clipping,

Specular reflection - polygon rendering & ray tracing method, Specular Refl...

Specular Reflection - Polygon Rendering & Ray Tracing Methods Specular reflection is while the reflection is stronger in one viewing direction that is a bright spot, termed

Disadvantages of the z-buffer method, Disadvantages : 1)   Doubles memor...

Disadvantages : 1)   Doubles memory needs, one for at least z-buffer and one for refreshes- buffer. 2)   Dependency of device and memory intensive. 3) Wasted calculation u

What are the steps to mapping artwork to an object, Question 1: (a) How...

Question 1: (a) How can you select and manipulate individual objects in a group? (b) How do you resize an object? Explain how you determine the point from which the object r

Panning and zooming a component, Panning and zooming Components (such as yo...

Panning and zooming Components (such as your Polybounce or Animation) is simply a matter of reFrameing the world window. To pan right or left horizontally, one shifts it in the pos

2d line segment generation - 2d shape primitives, 2D Line Segment Generatio...

2D Line Segment Generation  A digitally plotted line is basically an approximation of infinite number of points on an abstract line segment by only a finite number of points on

Differentiate images and graphics, Question 1 Discuss the general properti...

Question 1 Discuss the general properties of analog signal Question 2 Differentiate images and graphics Question 3 Explain the video compression standard H.263

Determine how many key frames does one minute animation film, How many key ...

How many key frames does one minute animation film order along with no duplications need if there are five in among for each pair of key frames?   Solution : One minute = 60 sec

What is persistence and resolution, What is persistence and resolution?  ...

What is persistence and resolution?  The time it takes the emitted light from the screen to decay one tenth of its original intensity is known as a persistence.  The maximum

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