Letterkenny Institute of Technology
|
|
- Thomas Rose
- 6 years ago
- Views:
Transcription
1 Letterkenny Institute of Technology BSc in Computing in Games Development Subject: Games Programming 1 Level: 7 Date: Autumn 2008 Examiners: Dr. J.G. Campbell Dr. M.D.J. McNeill Time Allowed: Two hours. INSTRUCTIONS Answer three questions from five; the maximum number of marks obtainable is 75; marks will be converted appropriately to give a result out of 100%. Failure to properly explain answers and/or calculations may result in loss of marks. Games Programming 1 Page 1 of 22 Autumn 2008
2 1. Trigonometry and Vector arithmetic. (a) Use Figure 1 to draw a graph of cos a from 0 to 360 in steps of 30. There is an enlarged copy of Figure 1 on page 22 which you should detach and use for your answer; remember to include it in your answer book. [6 marks Figure 1: Circle and cosine. (b) If you know cos b = p, what is cos b? [2 marks (c) e 1 = e 2 = a = b = c = [ 1 0 [ 0 1 [ 1 4 [ 4 2 [ 4 2 (1) (2) (3) (4) (5) (i) Compute a + b. [2 marks (ii) Verify your answer to (i) using either the head to tail rule or the parallelogram rule. You must provide a diagram. (iii) Compute b + c. (iv) Compute 4a. [2 marks [2 marks [2 marks Games Programming 1 Page 2 of 22 Autumn 2008
3 (d) (e) (i) Compute a b (scalar product). (ii) Compute c e 2. (i) Compute the magnitude (length) of b, b. (ii) Compute the magnitude (length) of c, c. [2 marks [2 marks [3 marks [2 marks Games Programming 1 Page 3 of 22 Autumn 2008
4 2. Graphics programming. Figure 2 shows some simple shapes and Figure 3 shows the Java code used to draw them. Note: Figure 2 is created in a graphics framework in which the y-axis point upwards and start points of rectangles and ellipses are the bottom left. Figure 2: Simple shapes. Games Programming 1 Page 4 of 22 Autumn 2008
5 private Ellipse2D createcircle(point2d c, double r) return new Ellipse2D.Double( c.getx() - r, c.gety() - r, r*2.0, r*2.0); Ellipse2D e = new Ellipse2D.Double(-145., 125., 80., 100.); g2.setpaint(color.red); g2.fill(e); // C Rectangle2D r1 = new Rectangle2D.Double(-145., 125., 80., 100.); g2.setpaint(color.blue); g2.draw(r1); Rectangle2D r2 = new Rectangle2D.Double(-195., 25., 150., 80.); g2.setpaint(color.red); g2.draw(r2); Point2D pc = new Point2D.Double(250.0, 220.0); Ellipse2D circ = createcircle(pc, 80.0); g2.setpaint(color.red); g2.draw(circ); Point2D pc2 = new Point2D.Double(200.0, ); Ellipse2D circ2 = createcircle(pc2, 60.0); g2.setpaint(color.green); g2.fill(circ2); Color c3 = new Color(0, 0, 255, 60); // D Point2D pc3 = new Point2D.Double(300.0, 0.0); Ellipse2D circ3 = createcircle(pc3, 30.0); g2.setpaint(c3); g2.fill(circ3); // A GeneralPath path = new GeneralPath(); path.moveto(0.0f, 80.0f); path.lineto(40.0f, 40.0f); path.lineto(140.0f, 40.0f); path.lineto(180.0f, 80.0f); path.lineto(140.0f, 120.0f); path.lineto(40.0f, 120.0f); path.lineto(0.0f, 80.0f); g2.fill(path); g2.setpaint(color.red); g2.draw(path); // B Point2D p1 = new Point2D.Double(25.0, 205.0); Point2D p2 = new Point2D.Double(155.0, 305.0); Point2D p3 = new Point2D.Double(155.0, 205.0); g2.setpaint(color.black); Line2D l1 = new Line2D.Double(p1, p2); Line2D l2 = new Line2D.Double(p2, p3); Line2D l3 = new Line2D.Double(p3, p1); g2.draw(l1); g2.draw(l2); g2.draw(l3); Figure 3: Simple Shapes Games Programming 1 Page 5 of 22 Autumn 2008
6 (a) Explain the four parameters of the Color constructor below. Be careful to explain the purpose of the last parameter (value 60 here). Color c3 = new Color(0, 0, 255, 60); // D [5 marks (b) Write code to draw an Rectangle2D whose bottom left corner is (x = 200, y = 150) and whose top right corner (note: top right corner) is at x = 300, y = 200; draw its outline blue. Draw an annotated sketch or write comments showing how you arrived at your answer. [6 marks (c) Referring to the example use of GeneralPath at // A, use the GeneralPath technique to draw the (same) rectangle that is drawn at // C; draw an annotated sketch showing how you arrived at your answer. [7 marks (d) Referring to the example use of Line2D at // B, use lines to draw the lozenge shape (perimeter only) that is drawn at // A; draw an annotated sketch or write comments showing how you arrived at your answer. [7 marks Games Programming 1 Page 6 of 22 Autumn 2008
7 3. Vector transformations. Figure 4 shows some vectors and the results of applying rotation transformations to them. Figure 5 shows the relevant Java code. Note: it may help to refer to Appendices B and C which contain some facts and formulas on vector and affine transformations. Figure 4: Vectors and transformed vectors. Games Programming 1 Page 7 of 22 Autumn 2008
8 Vector2DH v10 = new Vector2DH(100.0, 0.0); Point2D p0 = new Point2D.Double(0.0, 0.0); System.out.println( v10 = + v10); v10.draw(p0, Color.black, g2, v10= +v10); Transform2D t1 = new Transform2D(); t1.setrot(math.toradians(30.0)); Vector2DH v1 = t1.transform(v10); v1.draw(p0, Color.black, g2, v1= +v1); System.out.println( t1 = + t1); System.out.println( v1 = + v1); Vector2DH v2 = t1.transform(v1); v2.draw(p0, Color.black, g2, v2= +v2, 0, 0); System.out.println( v2 = + v2); Transform2D t2 = new Transform2D(); t2.setrot(math.toradians(-60.0)); Vector2DH v3 = t2.transform(v2); System.out.println( t2 = + t2); System.out.println( v3 = + v3); v3.draw(p0, Color.black, g2, v3= +v3, 0, 20); Transform2D t3 = new Transform2D(); t3.setrot(math.toradians(150.0)); System.out.println( v10 = + v10); System.out.println( t1 = + t1); System.out.println( t3 = + t3); Transform2D tt = Transform2D.mult(t1, t3); System.out.println( tt = + tt); Vector2DH v4 = tt.transform(v10); v4.draw(p0, Color.black, g2, v4= +v4, 0, 10); System.out.println( v4 = + v4); Figure 5: Vectors and transformed vectors code Games Programming 1 Page 8 of 22 Autumn 2008
9 (a) Below is the output related to vectors v 10 and v 1. v10 = (100.0, 0.0) t1 = [( 0.866, , 0.000) ( 0.500, 0.866, 0.000) v1 = ( 86.6, 50.0) (i) Explain the numbers in t1. (ii) Explain how the values in v 1 = (86.6, 50.0) are arrived at. [4 marks [4 marks (b) Explain how the values in v 2 = (50.0, 86.6) are arrived at. [4 marks (c) Explain how the values in v 3 = (100.0, 0.0) are arrived at. [4 marks (d) Below is the output related to vectors v 10 and v 4 and the transformations t1, t3, tt. Explain how the values in tt are arrived at. v10 = (100.0, 0.0) t1 = [( 0.866, , 0.000) ( 0.500, 0.866, 0.000) t3 = [( , , 0.000) ( 0.500, , 0.000) tt = [( , 0.000, 0.000) ( 0.000, , 0.000) v4 = (-100.0, 0.0) [4 marks Games Programming 1 Page 9 of 22 Autumn 2008
10 (e) Figure 6 shows some vectors and the results of applying a transformation to them. Figure 7 shows the relevant Java code. Figure 6: Vectors and mystery transformation. Question. Derive the values of a11, a12, a21, a22 in the transformation t4. [5 marks Games Programming 1 Page 10 of 22 Autumn 2008
11 Transform2D t4 = new Transform2D(); t4.set... // mystery transformation System.out.println( t4 = + t4); Vector2DH v01 = new Vector2DH(0.0, 100.0); System.out.println( v10 = + v10); v10.draw(p0, Color.black, g2, v10= +v10); System.out.println( v01 = + v01); v01.draw(p0, Color.black, g2, v01= +v01, 0, 25); Vector2DH vv10 = t4.transform(v10); vv10.draw(p0, Color.black, g2, vv10= +vv10); System.out.println( vv10 = + vv10); Vector2DH vv01 = t4.transform(v01); vv01.draw(p0, Color.black, g2, vv01= +vv01, -100, 0); System.out.println( vv01 = + vv01); Output. t4 = [( a11, a12, 0.000) // actual values replaced by a11 etc. ( a21, a22, 0.000) v10 = (100.0, 0.0) v01 = ( 0.0, 100.0) vv10 = ( 81.9, 57.4) vv01 = (-57.4, 81.9) Figure 7: Mystery transformation Games Programming 1 Page 11 of 22 Autumn 2008
12 4. Games programming. (a) How can parallax scrolling be used to give a 3D effect in a 2D game? [5 marks (b) Figure 9 shows a level map file for a tile-based game. The sprite and tile images are shown in Figure 8. (A background is displayed separately.) Figure 8: Sprites and tiles. Games Programming 1 Page 12 of 22 Autumn 2008
13 # Map file for tile-based game # (Lines that start with # are comments) # The tiles are: # (Space) Empty tile # A..Z Tiles A through Z # o Star #! Music Note # * Goal # 1 Bad Guy 1 (grub) # 2 Bad Guy 2 (fly) o o o o o o o o o o o o o o IIIIIII IIIIIII o o 2 o 2 2 2EF EF EGD EF 1 CD 1 1 EGAD * BBBBBBBBGHBBBBBBBGHBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBGAAHBBBBBBBBBBB # # in (c) draw from here --- Figure 9: Map file for tile-based game Give a detailed commentary on how the code in Figures 10 and 11 use the level map file to initialise the game display. [10 marks (c) Draw the right hand eight columns of the display to demonstrate that you understand the meaning of the map file. Question 4, part (d), continues on page 16. [4 marks Games Programming 1 Page 13 of 22 Autumn 2008
14 private TileMap loadmap(string filename) throws IOException ArrayList lines = new ArrayList(); int width = 0; int height = 0; // read every line in the text file into the list BufferedReader reader = new BufferedReader( new FileReader(filename)); while (true) String line = reader.readline(); // no more lines to read if (line == null) reader.close(); break; // add every line except for comments if (!line.startswith( # )) lines.add(line); width = Math.max(width, line.length()); // parse the lines to create a TileEngine height = lines.size(); TileMap newmap = new TileMap(width, height); for (int y=0; y height; y++) String line = (String)lines.get(y); for (int x=0; x line.length(); x++) char ch = line.charat(x); // check if the char represents tile A, B, C etc. int tile = ch - A ; if (tile = 0 && tile tiles.size()) newmap.settile(x, y, (Image)tiles.get(tile)); // continued... Figure 10: Level reader for a sprite-tile-based game, part 1. Games Programming 1 Page 14 of 22 Autumn 2008
15 // four lines repeated... int tile = ch - A ; if (tile = 0 && tile tiles.size()) newmap.settile(x, y, (Image)tiles.get(tile)); // check if the char represents a sprite else if (ch == o ) addsprite(newmap, coinsprite, x, y); else if (ch ==! ) addsprite(newmap, musicsprite, x, y); else if (ch == * ) addsprite(newmap, goalsprite, x, y); else if (ch == 1 ) addsprite(newmap, grubsprite, x, y); else if (ch == 2 ) addsprite(newmap, flysprite, x, y); // add the player to the map Sprite player = (Sprite)playerSprite.clone(); player.setx(tilemaprenderer.tilestopixels(3)); player.sety(0); newmap.setplayer(player); return newmap; private void addsprite(tilemap map, Sprite hostsprite, int tilex, int tiley) if (hostsprite!= null) // clone the sprite from the host Sprite sprite = (Sprite)hostSprite.clone(); // center the sprite sprite.setx( TileMapRenderer.tilesToPixels(tileX) + (TileMapRenderer.tilesToPixels(1) - sprite.getwidth()) / 2); // bottom-justify the sprite sprite.sety(tilemaprenderer.tilestopixels(tiley + 1) - sprite.getheight()); // add it to the map map.addsprite(sprite); Figure 11: Level reader for a sprite-tile-based game, part 2. Games Programming 1 Page 15 of 22 Autumn 2008
16 (d) Explain the use of draw in Figure 12 in updating the positions of a number of sprites in a game. Concentrate on // *1 and // *2; be sure to mention the circumstances in which sprite.getvelocityx() 0 would be true and how the two lines: transform.scale(-1, 1); transform.translate(-sprite.getwidth(), 0); will alter the appearance of a sprite such as grub1 or grub2 in Figure 8. [6 marks public void draw(graphics2d g) // draw background g.drawimage(bgimage, 0, 0, null); AffineTransform transform = new AffineTransform(); for (int i = 0; i NUM SPRITES; i++) Sprite sprite = sprites[i; // *1 transform.settotranslation(sprite.getx(), sprite.gety()); // *2 if (sprite.getvelocityx() 0) transform.scale(-1, 1); transform.translate(-sprite.getwidth(), 0); // draw it g.drawimage(sprite.getimage(), transform, null); Figure 12: Sprite position updater. Games Programming 1 Page 16 of 22 Autumn 2008
17 5. General topics. Write short notes on the following topics. Each is worth five marks. (a) Double buffering. (b) Anti-aliasing. (c) Little endian versus big endian. Hint: a 32-bit integer occupies four bytes. (d) Threads. (e) Scaling vector transformation. [25 marks Games Programming 1 Page 17 of 22 Autumn 2008
18 Appendix A, Trigonometry. Figure 13: Sin, cos and and circle. From Figure 13 we can see from Pythagoras s Theorem that Some values. sin 0 = 0, sin 90 = 1. cos 0 = 1, cos 90 = 0. sin 2 θ + cos 2 θ = 1. (6) Radians. A radian is about 57 ; it is the angle subtended by an arc of length r on a circle of radius r. π/2radians = 90, πradians = 180, 2π radians = 360, etc. π = Degrees, d, to radians, r: r = (180/π) d. Cos and Sin are periodic over 2π radians or 360. cos and sin repeat themselves after 2π radians or 360 deg. Sin is an odd function: sin θ = sin θ. Cos is an even function: cos θ = cos θ. Games Programming 1 Page 18 of 22 Autumn 2008
19 Useful equations. sin(θ + φ) = sin θ cos φ + cos θ sin φ, (7) sin(θ φ) = sin θ cos φ cos θ sin φ, (8) cos(θ + φ) = cos θ cos φ sin θ sin φ, (9) cos(θ φ) = cos θ cos φ + sin θ sin φ. (10) sin 2 θ + cos 2 θ = 1. (11) sin 2 θ = 1 (1 cos 2θ). (12) 2 cos 2 θ = 1 (1 + cos 2θ). (13) 2 cos 2θ = cos 2 θ sin 2 θ = 1 sin 2 θ = 2 cos 2 θ 1. (14) Games Programming 1 Page 19 of 22 Autumn 2008
20 Appendix B, 2D Linear Transformations. Scaling [ vx v y [ sx 0 = 0 s y [ ux u y. (15) Rotation [ vx v y [ cos b sin b = sin b cos b [ ux u y. (16) Shear Shear along the x axis, [ vx v y = [ 1 a 0 1 [ ux u y. (17) Shear along the y axis, [ vx v y = [ 1 0 b 1 [ ux u y. (18) Reflection Reflect about the y axis (x-coordinates are negated), [ [ [ vx 1 0 ux =. (19) 0 1 v y u y Reflect about the x axis (y-coordinates are negated), [ [ [ vx 1 0 ux = 0 1 v y u y. (20) Projection Projection onto x-axis, [ vx v y = [ [ ux u y. (21) Projection onto the y-axis, [ vx v y = [ [ ux u y. (22) Translation [ vx v y = [ tx t y + [ ux u y. (23) Games Programming 1 Page 20 of 22 Autumn 2008
21 Appendix C, 3D Affine Transformations using Homogeneous Coordinates. Translation v x v y v z v w = t x t y t z u x u y u z u w. (24) Rotation about the z-axis Rotation about the x-axis Rotation about the y-axis R z (b) = R x (b) = R y (b) = cos b sin b 0 0 sin b cos b cos b sin b 0 0 sin b cos b cos b 0 sin b sin b 0 cos b (25). (26). (27) Games Programming 1 Page 21 of 22 Autumn 2008
22 y a = 30 cos(a) O X a Figure 14: To be use in answering question 1.(a). Detach and include in your answer book. Games Programming 1 Page 22 of 22 Autumn 2008
Letterkenny Institute of Technology
Letterkenny Institute of Technology BSc in Computing(Games) Subject: Games Programming 1 Stage: 1 Date: Autumn 2007 Examiners: J.G. Campbell Dr. M.D.J. McNeill Time Allowed: Two hours. INSTRUCTIONS Answer
More informationCreating a 2D Platform Game
Content Creating a 2D Platform Game Chapter 5 Creating a TileBased Map Collision Detection Finishing Things Up and Making It Fast Creating an Executable.jar File Ideas to Expand the Game Summary 2 Introduction
More informationSolution Notes. COMP 151: Terms Test
Family Name:.............................. Other Names:............................. ID Number:............................... Signature.................................. Solution Notes COMP 151: Terms
More informationMATHEMATICS FOR ENGINEERING TRIGONOMETRY
MATHEMATICS FOR ENGINEERING TRIGONOMETRY TUTORIAL SOME MORE RULES OF TRIGONOMETRY This is the one of a series of basic tutorials in mathematics aimed at beginners or anyone wanting to refresh themselves
More informationReview of Trigonometry
Worksheet 8 Properties of Trigonometric Functions Section Review of Trigonometry This section reviews some of the material covered in Worksheets 8, and The reader should be familiar with the trig ratios,
More information2D and 3D Transformations AUI Course Denbigh Starkey
2D and 3D Transformations AUI Course Denbigh Starkey. Introduction 2 2. 2D transformations using Cartesian coordinates 3 2. Translation 3 2.2 Rotation 4 2.3 Scaling 6 3. Introduction to homogeneous coordinates
More information10.1 Curves Defined by Parametric Equations
10.1 Curves Defined by Parametric Equations Ex: Consider the unit circle from Trigonometry. What is the equation of that circle? There are 2 ways to describe it: x 2 + y 2 = 1 and x = cos θ y = sin θ When
More informationSection T Similar and congruent shapes
Section T Similar and congruent shapes Two shapes are similar if one is an enlargement of the other (even if it is in a different position and orientation). There is a constant scale factor of enlargement
More informationGraphics and Interaction Transformation geometry and homogeneous coordinates
433-324 Graphics and Interaction Transformation geometry and homogeneous coordinates Department of Computer Science and Software Engineering The Lecture outline Introduction Vectors and matrices Translation
More informationCOMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates
COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates Department of Computer Science and Software Engineering The Lecture outline Introduction Vectors and matrices Translation
More informationMATH EXAM 1 - SPRING 2018 SOLUTION
MATH 140 - EXAM 1 - SPRING 018 SOLUTION 8 February 018 Instructor: Tom Cuchta Instructions: Show all work, clearly and in order, if you want to get full credit. If you claim something is true you must
More informationMA 154 PRACTICE QUESTIONS FOR THE FINAL 11/ The angles with measures listed are all coterminal except: 5π B. A. 4
. If θ is in the second quadrant and sinθ =.6, find cosθ..7.... The angles with measures listed are all coterminal except: E. 6. The radian measure of an angle of is: 7. Use a calculator to find the sec
More informationMath 144 Activity #2 Right Triangle Trig and the Unit Circle
1 p 1 Right Triangle Trigonometry Math 1 Activity #2 Right Triangle Trig and the Unit Circle We use right triangles to study trigonometry. In right triangles, we have found many relationships between the
More informationAdding vectors. Let s consider some vectors to be added.
Vectors Some physical quantities have both size and direction. These physical quantities are represented with vectors. A common example of a physical quantity that is represented with a vector is a force.
More informationUnit Circle. Project Response Sheet
NAME: PROJECT ACTIVITY: Trigonometry TOPIC Unit Circle GOALS MATERIALS Explore Degree and Radian Measure Explore x- and y- coordinates on the Unit Circle Investigate Odd and Even functions Investigate
More informationAQA GCSE Further Maths Topic Areas
AQA GCSE Further Maths Topic Areas This document covers all the specific areas of the AQA GCSE Further Maths course, your job is to review all the topic areas, answering the questions if you feel you need
More informationMATHEMATICS FOR ENGINEERING TUTORIAL 5 COORDINATE SYSTEMS
MATHEMATICS FOR ENGINEERING TUTORIAL 5 COORDINATE SYSTEMS This tutorial is essential pre-requisite material for anyone studying mechanical engineering. This tutorial uses the principle of learning by example.
More informationSL1Trig.notebook April 06, 2013
Unit plan on website has HW assignments for these chapters. 1 Right Angle Trig - Review Geogebra Sketch to Explore 2 Lots of theories about where 360 degrees came from. The Babylonians has a base 60 number
More informationMathematics. Geometry Revision Notes for Higher Tier
Mathematics Geometry Revision Notes for Higher Tier Thomas Whitham Sixth Form S J Cooper Pythagoras Theorem Right-angled trigonometry Trigonometry for the general triangle rea & Perimeter Volume of Prisms,
More informationGeometry B. The University of Texas at Austin Continuing & Innovative Education K 16 Education Center 1
Geometry B Credit By Exam This Credit By Exam can help you prepare for the exam by giving you an idea of what you need to study, review, and learn. To succeed, you should be thoroughly familiar with the
More informationAnalytic Spherical Geometry:
Analytic Spherical Geometry: Begin with a sphere of radius R, with center at the origin O. Measuring the length of a segment (arc) on a sphere. Let A and B be any two points on the sphere. We know that
More informationTrigonometry I. Exam 0
Trigonometry I Trigonometry Copyright I Standards 006, Test Barry Practice Mabillard. Exam 0 www.math0s.com 1. The minimum and the maximum of a trigonometric function are shown in the diagram. a) Write
More informationSL1.Trig.1718.notebook. April 15, /26 End Q3 Pep talk. Fractal Friday: April 6. I want to I will I can I do
Coming up Explorations! A few ideas that I particularly like: Complex quadratics Fractals (complex numbers) Graphing complex roots of quadratics Geometric interpretation of variance etc. Understanding
More informationAffine Transformations. Transforming shape models Combining affine transformations Scene graphs, interactor trees Hit tests on transformed shapes
Affine Transformations Transforming shape models Combining affine transformations Scene graphs, interactor trees Hit tests on transformed shapes Reacll: Shape Models We can think of widgets as shape models
More informationLesson 27: Angles in Standard Position
Lesson 27: Angles in Standard Position PreCalculus - Santowski PreCalculus - Santowski 1 QUIZ Draw the following angles in standard position 50 130 230 320 770-50 2 radians PreCalculus - Santowski 2 Fast
More informationCircular Trigonometry Notes April 24/25
Circular Trigonometry Notes April 24/25 First, let s review a little right triangle trigonometry: Imagine a right triangle with one side on the x-axis and one vertex at (0,0). We can write the sin(θ) and
More informationSection Graphs of the Sine and Cosine Functions
Section 5. - Graphs of the Sine and Cosine Functions In this section, we will graph the basic sine function and the basic cosine function and then graph other sine and cosine functions using transformations.
More informationLecture 5 2D Transformation
Lecture 5 2D Transformation What is a transformation? In computer graphics an object can be transformed according to position, orientation and size. Exactly what it says - an operation that transforms
More informationEXAMINATIONS 2017 TRIMESTER 2
EXAMINATIONS 2017 TRIMESTER 2 CGRA 151 INTRODUCTION TO COMPUTER GRAPHICS Time Allowed: TWO HOURS CLOSED BOOK Permitted materials: Silent non-programmable calculators or silent programmable calculators
More informationJava How to Program, 9/e. Copyright by Pearson Education, Inc. All Rights Reserved.
Java How to Program, 9/e Copyright 1992-2012 by Pearson Education, Inc. All Rights Reserved. Overview capabilities for drawing two-dimensional shapes, controlling colors and controlling fonts. One of
More informationCSE 373 Autumn 2010: Midterm #1 (closed book, closed notes, NO calculators allowed)
Name: Email address: CSE 373 Autumn 2010: Midterm #1 (closed book, closed notes, NO calculators allowed) Instructions: Read the directions for each question carefully before answering. We may give partial
More informationSECTION 4.5: GRAPHS OF SINE AND COSINE FUNCTIONS
SECTION 4.5: GRAPHS OF SINE AND COSINE FUNCTIONS 4.33 PART A : GRAPH f ( θ ) = sinθ Note: We will use θ and f ( θ) for now, because we would like to reserve x and y for discussions regarding the Unit Circle.
More informationGenerating Vectors Overview
Generating Vectors Overview Vectors are mathematically defined shapes consisting of a series of points (nodes), which are connected by lines, arcs or curves (spans) to form the overall shape. Vectors can
More informationCalculus III. Math 233 Spring In-term exam April 11th. Suggested solutions
Calculus III Math Spring 7 In-term exam April th. Suggested solutions This exam contains sixteen problems numbered through 6. Problems 5 are multiple choice problems, which each count 5% of your total
More informationMath 231E, Lecture 34. Polar Coordinates and Polar Parametric Equations
Math 231E, Lecture 34. Polar Coordinates and Polar Parametric Equations 1 Definition of polar coordinates Let us first recall the definition of Cartesian coordinates: to each point in the plane we can
More informationLesson 5.6: Angles in Standard Position
Lesson 5.6: Angles in Standard Position IM3 - Santowski IM3 - Santowski 1 Fast Five Opening Exercises! Use your TI 84 calculator:! Evaluate sin(50 ) " illustrate with a diagram! Evaluate sin(130 ) " Q
More informationPresented, and Compiled, By. Bryan Grant. Jessie Ross
P a g e 1 Presented, and Compiled, By Bryan Grant Jessie Ross August 3 rd, 2016 P a g e 2 Day 1 Discovering Polar Graphs Days 1 & 2 Adapted from Nancy Stephenson - Clements High School, Sugar Land, Texas
More informationSolve 3-D problems using Pythagoras theorem and trigonometric ratios (A*) Solve more complex 2-D problems using Pythagoras theorem & trigonometry (A)
Moving from A to A* Solve 3-D problems using Pythagoras theorem and trigonometric ratios (A*) A* Use the sine & cosine rules to solve more complex problems involving non right-angled triangles (A*) Find
More informationCOMP30019 Graphics and Interaction Scan Converting Polygons and Lines
COMP30019 Graphics and Interaction Scan Converting Polygons and Lines Department of Computer Science and Software Engineering The Lecture outline Introduction Scan conversion Scan-line algorithm Edge coherence
More informationCh. 2 Trigonometry Notes
First Name: Last Name: Block: Ch. Trigonometry Notes.0 PRE-REQUISITES: SOLVING RIGHT TRIANGLES.1 ANGLES IN STANDARD POSITION 6 Ch..1 HW: p. 83 #1,, 4, 5, 7, 9, 10, 8. - TRIGONOMETRIC FUNCTIONS OF AN ANGLE
More informationEXAMINATIONS 2016 TRIMESTER 2
EXAMINATIONS 2016 TRIMESTER 2 CGRA 151 INTRODUCTION TO COMPUTER GRAPHICS Time Allowed: TWO HOURS CLOSED BOOK Permitted materials: Silent non-programmable calculators or silent programmable calculators
More informationWorksheet 3.2: Double Integrals in Polar Coordinates
Boise State Math 75 (Ultman) Worksheet 3.: ouble Integrals in Polar Coordinates From the Toolbox (what you need from previous classes): Trig/Calc II: Convert equations in x and y into r and θ, using the
More information1 Getting started with Processing
cis3.5, spring 2009, lab II.1 / prof sklar. 1 Getting started with Processing Processing is a sketch programming tool designed for use by non-technical people (e.g., artists, designers, musicians). For
More informationMathematics Placement Assessment
Mathematics Placement Assessment Courage, Humility, and Largeness of Heart Oldfields School Thank you for taking the time to complete this form accurately prior to returning this mathematics placement
More information2009 GCSE Maths Tutor All Rights Reserved
2 This book is under copyright to GCSE Maths Tutor. However, it may be distributed freely provided it is not sold for profit. Contents angles 3 bearings 8 triangle similarity 9 triangle congruency 11 Pythagoras
More informationcorrelated to the Michigan High School Content Expectations Geometry
correlated to the Michigan High School Content Expectations Geometry McDougal Littell Integrated Mathematics 2 2005 correlated to the Michigan High School Content Expectations Geometry STANDARD L1: REASONING
More informationCommon Core Standards Addressed in this Resource
Common Core Standards Addressed in this Resource N-CN.4 - Represent complex numbers on the complex plane in rectangular and polar form (including real and imaginary numbers), and explain why the rectangular
More informationTo specify the dimensions of the drawing canvas use the size statement: ! size( 300, 400 );
Study Guide We have examined three main topics: drawing static pictures, drawing simple moving pictures, and manipulating images. The Final Exam will be concerned with each of these three topics. Each
More informationChapter 1: Symmetry and Surface Area
Chapter 1: Symmetry and Surface Area Name: Section 1.1: Line Symmetry Line of symmetry(or reflection): divides a shape or design into two parts. Can be found using: A mirra Folding Counting on a grid Section
More informationDownloaded from
Top Concepts Class XI: Maths Ch : Trigonometric Function Chapter Notes. An angle is a measure of rotation of a given ray about its initial point. The original ray is called the initial side and the final
More informationTo graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below:
Polar Coordinates Any point in the plane can be described by the Cartesian coordinates (x, y), where x and y are measured along the corresponding axes. However, this is not the only way to represent points
More informationComputer Graphics. Lecture 2. Doç. Dr. Mehmet Gokturk
Computer Graphics Lecture 2 Doç. Dr. Mehmet Gokturk Mathematical Foundations l Hearn and Baker (A1 A4) appendix gives good review l Some of the mathematical tools l Trigonometry l Vector spaces l Points,
More informationAlcester Academy Curriculum Planning: Key Stage 4
Department: Maths Year Group: 10 Foundation Term Topic/ subject Assessment Objectives And Knowledge Autumn 1 (7 weeks) The averages Calculate mean, median, mode and range, including from a frequency table.
More informationGAUTENG DEPARTMENT OF EDUCATION SENIOR SECONDARY INTERVENTION PROGRAMME. MATHEMATICS Grade 11 SESSION 17 LEARNER NOTES
TRANSFORMATIONS Learner note: Transformations are easy to master and you can score well in questions involving this topic. Ensure that you know the different algebraic transformation rules. LESSON OVERVIEW
More informationClass #10 Wednesday, November 8, 2017
Graphics In Excel Before we create a simulation, we need to be able to make a drawing in Excel. The techniques we use here are also used in Mathematica and LabVIEW. Drawings in Excel take place inside
More informationCS F-07 Objects in 2D 1
CS420-2010F-07 Objects in 2D 1 07-0: Representing Polgons We want to represent a simple polgon Triangle, rectangle, square, etc Assume for the moment our game onl uses these simple shapes No curves for
More informationC if U can Shape and space
C if U can Shape and space Name How will this booklet help you to move from a D to a C grade? The topic of shape and space is split into five units angles, transformations, the circle, area and volume
More informationGame Engineering: 2D
Game Engineering: 2D CS420-2010F-07 Objects in 2D David Galles Department of Computer Science University of San Francisco 07-0: Representing Polygons We want to represent a simple polygon Triangle, rectangle,
More informationSM 2. Date: Section: Objective: The Pythagorean Theorem: In a triangle, or
SM 2 Date: Section: Objective: The Pythagorean Theorem: In a triangle, or. It doesn t matter which leg is a and which leg is b. The hypotenuse is the side across from the right angle. To find the length
More informationAnswers to practice questions for Midterm 1
Answers to practice questions for Midterm Paul Hacking /5/9 (a The RREF (reduced row echelon form of the augmented matrix is So the system of linear equations has exactly one solution given by x =, y =,
More informationFramework for developing schemes of work for the geometry curriculum for ages 11-14
Framework for developing schemes of work for the geometry curriculum for ages 11-14 CURRICULUM CONTENT TOPIC TEACHING OPPORTUNITIES Classify 2D shapes using angle and side properties. Recognise congruence
More informationName: Class: Date: 6. Find, to the nearest tenth, the radian measure of 216º.
Name: Class: Date: Trigonometry - Unit Review Problem Set. Find, to the nearest minute, the angle whose measure is.5 radians.. What is the number of degrees in an angle whose radian measure is? 50 65 0
More informationPLANE TRIGONOMETRY Exam I September 13, 2007
Name Rec. Instr. Rec. Time PLANE TRIGONOMETRY Exam I September 13, 2007 Page 1 Page 2 Page 3 Page 4 TOTAL (10 pts.) (30 pts.) (30 pts.) (30 pts.) (100 pts.) Below you will find 10 problems, each worth
More informationA lg e b ra II. Trig o n o m e tric F u n c tio
1 A lg e b ra II Trig o n o m e tric F u n c tio 2015-12-17 www.njctl.org 2 Trig Functions click on the topic to go to that section Radians & Degrees & Co-terminal angles Arc Length & Area of a Sector
More informationTo graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6
Polar Coordinates Any point in the plane can be described by the Cartesian coordinates (x, y), where x and y are measured along the corresponding axes. However, this is not the only way to represent points
More informationChapter 4/5 Part 1- Trigonometry in Radians
Chapter 4/5 Part - Trigonometry in Radians Lesson Package MHF4U Chapter 4/5 Part Outline Unit Goal: By the end of this unit, you will be able to demonstrate an understanding of meaning and application
More informationTrigonometry I -- Answers -- Trigonometry I Diploma Practice Exam - ANSWERS 1
Trigonometry I -- Answers -- Trigonometry I Diploma Practice Exam - ANSWERS www.puremath.com Formulas These are the formulas for Trig I you will be given on your diploma. a rθ sinθ cosθ tan θ cotθ cosθ
More informationVector Addition. Qty Item Part Number 1 Force Table ME-9447B 1 Mass and Hanger Set ME Carpenter s level 1 String
rev 05/2018 Vector Addition Equipment List Qty Item Part Number 1 Force Table ME-9447B 1 Mass and Hanger Set ME-8979 1 Carpenter s level 1 String Purpose The purpose of this lab is for the student to gain
More informationThe triangle
The Unit Circle The unit circle is without a doubt the most critical topic a student must understand in trigonometry. The unit circle is the foundation on which trigonometry is based. If someone were to
More informationMiddle School Mathematics Trimester 2 Subject Overview
1 Class 7 Linear Graphs Sequences Data Handling Perimeter and Area Read and plot coordinates of points determined by geometric information in all four quadrants Generate coordinate pairs that satisfy a
More informationCLEP Pre-Calculus. Section 1: Time 30 Minutes 50 Questions. 1. According to the tables for f(x) and g(x) below, what is the value of [f + g]( 1)?
CLEP Pre-Calculus Section : Time 0 Minutes 50 Questions For each question below, choose the best answer from the choices given. An online graphing calculator (non-cas) is allowed to be used for this section..
More informationCURVES OF CONSTANT WIDTH AND THEIR SHADOWS. Have you ever wondered why a manhole cover is in the shape of a circle? This
CURVES OF CONSTANT WIDTH AND THEIR SHADOWS LUCIE PACIOTTI Abstract. In this paper we will investigate curves of constant width and the shadows that they cast. We will compute shadow functions for the circle,
More informationPut your initials on the top of every page, in case the pages become separated.
Math 1201, Fall 2016 Name (print): Dr. Jo Nelson s Calculus III Practice for 1/2 of Final, Midterm 1 Material Time Limit: 90 minutes DO NOT OPEN THIS BOOKLET UNTIL INSTRUCTED TO DO SO. This exam contains
More informationAppendix D Trigonometry
Math 151 c Lynch 1 of 8 Appendix D Trigonometry Definition. Angles can be measure in either degree or radians with one complete revolution 360 or 2 rad. Then Example 1. rad = 180 (a) Convert 3 4 into degrees.
More informationMATH 31A HOMEWORK 9 (DUE 12/6) PARTS (A) AND (B) SECTION 5.4. f(x) = x + 1 x 2 + 9, F (7) = 0
FROM ROGAWSKI S CALCULUS (2ND ED.) SECTION 5.4 18.) Express the antiderivative F (x) of f(x) satisfying the given initial condition as an integral. f(x) = x + 1 x 2 + 9, F (7) = 28.) Find G (1), where
More informationTransformations. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico
Transformations Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico Angel: Interactive Computer Graphics 4E Addison-Wesley 25 1 Objectives
More informationMathematics for Computer Graphics. Trigonometry
Mathematics for Computer Graphics Trigonometry Trigonometry...????? The word trigonometry is derived from the ancient Greek language and means measurement of triangles. trigonon triangle + metron measure
More informationMath 144 Activity #4 Connecting the unit circle to the graphs of the trig functions
144 p 1 Math 144 Activity #4 Connecting the unit circle to the graphs of the trig functions Graphing the sine function We are going to begin this activity with graphing the sine function ( y = sin x).
More informationComputer Graphics 7: Viewing in 3-D
Computer Graphics 7: Viewing in 3-D In today s lecture we are going to have a look at: Transformations in 3-D How do transformations in 3-D work? Contents 3-D homogeneous coordinates and matrix based transformations
More informationTRIGONOMETRY. Meaning. Dear Reader
TRIGONOMETRY Dear Reader In your previous classes you have read about triangles and trigonometric ratios. A triangle is a polygon formed by joining least number of points i.e., three non-collinear points.
More informationBasics of Computational Geometry
Basics of Computational Geometry Nadeem Mohsin October 12, 2013 1 Contents This handout covers the basic concepts of computational geometry. Rather than exhaustively covering all the algorithms, it deals
More informationis a plane curve and the equations are parametric equations for the curve, with parameter t.
MATH 2412 Sections 6.3, 6.4, and 6.5 Parametric Equations and Polar Coordinates. Plane Curves and Parametric Equations Suppose t is contained in some interval I of the real numbers, and = f( t), = gt (
More informationSection 10.1 Polar Coordinates
Section 10.1 Polar Coordinates Up until now, we have always graphed using the rectangular coordinate system (also called the Cartesian coordinate system). In this section we will learn about another system,
More informationAlgebra II. Slide 1 / 162. Slide 2 / 162. Slide 3 / 162. Trigonometric Functions. Trig Functions
Slide 1 / 162 Algebra II Slide 2 / 162 Trigonometric Functions 2015-12-17 www.njctl.org Trig Functions click on the topic to go to that section Slide 3 / 162 Radians & Degrees & Co-terminal angles Arc
More information1 Getting started with Processing
cisc3665, fall 2011, lab I.1 / prof sklar. 1 Getting started with Processing Processing is a sketch programming tool designed for use by non-technical people (e.g., artists, designers, musicians). For
More informationYear Term Week Chapter Ref Lesson 18.1 Cubic and reciprocal functions. 18 Graphs 2. (Algebra) 18.4 Gradients and areas under graphs
Year Term Week Chapter Ref Lesson 18.1 Cubic and reciprocal functions Year 3 Autumn Term 1-2 3-4 18 Graphs 2 (Algebra) 18.2 Exponential and trigonometric functions 18.3 Real-life graphs 18.4 Gradients
More informationMath 136 Exam 1 Practice Problems
Math Exam Practice Problems. Find the surface area of the surface of revolution generated by revolving the curve given by around the x-axis? To solve this we use the equation: In this case this translates
More informationpublic void paintcomponent(graphics g) { Graphics2D g2 = (Graphics2D)g;... }
6.1 RANDERING The original JDK 1.0 had a very simple mechanism for drawing shapes. You select color and paint mode, and call methods of the Graphics class such as drawrect or filloval. The Java 2D API
More informationCS 134 Test Program #2
CS 134 Test Program #2 Sokoban Objective: Build an interesting game using much of what we have learned so far. This second test program is a computer maze game called Sokoban. Sokoban is a challenging
More information7-5 Parametric Equations
3. Sketch the curve given by each pair of parametric equations over the given interval. Make a table of values for 6 t 6. t x y 6 19 28 5 16.5 17 4 14 8 3 11.5 1 2 9 4 1 6.5 7 0 4 8 1 1.5 7 2 1 4 3 3.5
More informationRevision Pack. Edexcel GCSE Maths (1 9) Non-calculator Questions Shapes
Edexcel GCSE Maths (1 9) Revision Pack Non-calculator Questions Shapes Edited by: K V Kumaran kvkumaran@gmail.com 07961319548 www.kumarmaths.weebly.com kumarmaths.weebly.com 1 Q1. All the measurements
More information(based on Assessment Criteria)
NO. OF GRADE 10 ASSESSMENT SESSIONS (MATHEMATICS) INTERDISCIPLINARY 25 TOPIC- GEOMETRY AOI- Human Ingenuity SIGNIFICANT CONCEPTS- Geometry allows us to work out the relationships Between shapes, forms
More informationArea rectangles & parallelograms
Area rectangles & parallelograms Rectangles One way to describe the size of a room is by naming its dimensions. So a room that measures 12 ft. by 10 ft. could be described by saying its a 12 by 10 foot
More informationPre Calculus Worksheet: Fundamental Identities Day 1
Pre Calculus Worksheet: Fundamental Identities Day 1 Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Strategy
More informationAlgebra II Trigonometric Functions
Slide 1 / 162 Slide 2 / 162 Algebra II Trigonometric Functions 2015-12-17 www.njctl.org Slide 3 / 162 Trig Functions click on the topic to go to that section Radians & Degrees & Co-terminal angles Arc
More information6.1 Polar Coordinates
6.1 Polar Coordinates Introduction This chapter introduces and explores the polar coordinate system, which is based on a radius and theta. Students will learn how to plot points and basic graphs in this
More informationGanado Unified School District Pre-Calculus 11 th /12 th Grade
Ganado Unified School District Pre-Calculus 11 th /12 th Grade PACING Guide SY 2016-2017 Timeline & Resources Quarter 1 AZ College and Career Readiness Standard HS.A-CED.4. Rearrange formulas to highlight
More informationHigher Tier Shape and space revision
Higher Tier Shape and space revision Contents : Angles and polygons Area Area and arc length of circles Area of triangle Volume and SA of solids Spotting P, A & V formulae Transformations Constructions
More informationCS 201 Advanced Object-Oriented Programming Lab 10 - Recursion Due: April 21/22, 11:30 PM
CS 201 Advanced Object-Oriented Programming Lab 10 - Recursion Due: April 21/22, 11:30 PM Introduction to the Assignment In this assignment, you will get practice with recursion. There are three parts
More informationMath 11 Fall 2016 Section 1 Monday, October 17, 2016
Math 11 Fall 16 Section 1 Monday, October 17, 16 First, some important points from the last class: f(x, y, z) dv, the integral (with respect to volume) of f over the three-dimensional region, is a triple
More information