CO1301: Games Concepts Dr Nick Mitchell (Room CM 226) Material originally prepared by Gareth Bellaby.

Slides:



Advertisements
Similar presentations
Sine, Cosine, Tangent, The Height Problem. In Trigonometry, we have some basic trigonometric functions that we will use throughout the course and explore.
Advertisements

Section 10.1 Tangent Ratios.
How did you use math (Geometry) during your spring break?
Honors Geometry Section 10.3 Trigonometry on the Unit Circle
FUNDAMENTALS OF ALGEBRA 2A CHAPTER 10 POWERPOINT PRESENTATION TRIGONOMETRY TRIGONOMETRY.
SINE AND ARC SINE A TEMPORARY MATHEMATICAL DETOUR.
6.8 Notes In this lesson you will learn how to evaluate expressions containing trigonometric functions and inverse trigonometric relations.
Trigonometric Functions
Holt McDougal Geometry Trigonometric Ratios Warm Up Write each fraction as a decimal rounded to the nearest hundredth Solve each equation
Measurment and Geometry
Radians In a circle of radius 1 unit, the angle  subtended at the centre of the circle by the arc of length 1 unit is called 1 radian, written as 1 rad.
4.1: Radian and Degree Measure Objectives: To use radian measure of an angle To convert angle measures back and forth between radians and degrees To find.
Copyright © 2009 Pearson Education, Inc. CHAPTER 7: Trigonometric Identities, Inverse Functions, and Equations 7.1Identities: Pythagorean and Sum and.
Where you see the picture below copy the information on the slide into your bound reference.
Mathematics By: Andrew Reed-Stum. Equations Definition Equations- An expression or a proposition often algebraic, asserting the quantities.
Maths Methods Trigonometric equations K McMullen 2012.
Unit Circle And Trigonometric Functions. (x, y) = (cos Ɵ, sin Ɵ )
Copyright  2011 Pearson Canada Inc. Trigonometry T - 1.
Section 5.5 Inverse Trigonometric Functions & Their Graphs
1 Circular Functions Just a fancy name for Trigonometry –Thinking of triangles as central angles in a circle Have done trigonometry ever since grade 9.
Appendix D: Trigonometry Review
Chapter 6 ADDITIONAL TOPICS IN TRIGONOMETRY. 6.1 Law of Sines Objectives –Use the Law of Sines to solve oblique triangles –Use the Law of Sines to solve,
Learning how to … use Pythagoras’ Theorem to calculate a shorter side of a right-angled triangle Mathematics GCSE Topic Reminders.
Copyright © Cengage Learning. All rights reserved. CHAPTER Radian Measure 3.
Unit J.1-J.2 Trigonometric Ratios
CO1301: Games Concepts Dr Nick Mitchell (Room CM 226) Material originally prepared by Gareth Bellaby.
Copyright © Cengage Learning. All rights reserved. CHAPTER Radian Measure 3.
Introduction to the Unit Circle in Trigonometry. What is the Unit Circle? Definition: A unit circle is a circle that has a radius of 1. Typically, especially.
Section Recall Then you applied these to several oblique triangles and developed the law of sines and the law of cosines.
CO1301: Games Concepts Dr Nick Mitchell (Room CM 226) Material originally prepared by Gareth Bellaby.
1.6 Trig Functions. The Mean Streak, Cedar Point Amusement Park, Sandusky, OH.
TRIGONOMETRY BASIC TRIANGLE STUDY: RATIOS: -SINE -COSINE -TANGENT -ANGLES / SIDES SINE LAW: AREA OF A TRIANGLE: - GENERAL -TRIGONOMETRY -HERO’S.
Geometry 4/7/14 Obj: SWBAT use trig ratios Chapter 8 Take Home Test Agenda Bell Ringer: Go over Quiz pg 450 #4-8 Homework Requests: pg 699 #1-4, pg 694.
Chapter 8.3: Trigonometric Ratios. Introduction Trigonometry is a huge branch of Mathematics. In Geometry, we touch on a small portion. Called the “Trigonometric.
CO1301: Games Concepts Dr Nick Mitchell (Room CM 226) Material originally prepared by Gareth Bellaby.
Quiz 4-5 Describe how tan(x) is transformed to graph: -tan(2x)
Trigonometric Ratios and Their Inverses
Holt McDougal Algebra 2 Right-Angle Trigonometry Holt Algebra 2Holt McDougal Algebra 2 How do we understand and use trigonometric relationships of acute.
S2B Chapter 11 Introduction to Trigonometric Ratios.
8.1-Law of the Sines Law of the Sines & Requirements Examples Practice Problems.
Warm- up What do you remember about right triangles?
Chapter 2 Trigonometric Functions of Real Numbers Section 2.2 Trigonometric Functions of Real Numbers.
Inverse Trig Functions Law of the Sines Notation Inverse Trig Functions, Law of the Sines & Requirements Practice Problems.
CO1301: Games Concepts Dr Nick Mitchell (Room CM 226) Material originally prepared by Gareth Bellaby.
[8-3] Trigonometry Mr. Joshua Doudt Geometry pg
Trigonometry Chapter 9.1.
Trigonometry Review.
Trig/Precalc Chapter 5.7 Inverse trig functions
Warm Up Use the following triangles: Find a if b = 10√2
Section 1.7 Inverse Trigonometric Functions
Angles of Elevation and Depression
P2 Chapter 5 :: Radians
…from now on this is strictly second year work
You will need a calculator and high lighter!
An Introduction to Trigonometry
P2 Chapter 5 :: Radians
CO1301: Games Concepts Lecture 13 Basic Trigonometry
Inverse Trigonometric Functions
Chapter 8: Trigonometric Functions And Applications
Chapter 8: The Unit Circle and the Functions of Trigonometry
Chapter 8: Trigonometric Functions And Applications
Chapter 8: The Unit Circle and the Functions of Trigonometry
Y. Davis Geometry Notes Chapter 8.
Right Triangle Trigonometry
Trigonometry for Angle
Trigonometric Ratios Geometry.
Presentation transcript:

CO1301: Games Concepts Dr Nick Mitchell (Room CM 226) Material originally prepared by Gareth Bellaby Lecture 8 Basic Trigonometry Hipparchos the “father” of trigonometry (image from Wikipedia)

References  Rabin, Introduction to Game Development, Chapter 4.1  Van Verth & Bishop, Essential Mathematics for Games, Appendix A and Chapter 1  Eric Lengyel, Mathematics for 3D Game Programming & Computer Graphics  Frank Luna, Introduction to 3D Game Programming with Direct 9.0c: A Shader Approach, Chapter 1

Lecture Structure  Introduction  Trigonometric functions:  sine, cosine, tangent  Circles  Useful trigonometric laws

Why study Trigonometry?  Why is trigonometry relevant to your course?  Games involve lots of geometrical calculations:  Rotation of models;  Line of sight calculations;  Collision detection;  Lighting.  For example, the intensity of directed light changes according to the angle at which it strikes a surface.  You require a working knowledge of geometry.

Mathematical Functions  A mathematical function defines a relationship between one variable and another.  A function takes an input (argument) and relates it to an output (value) according to some rule or formula.  For instance, the sine function maps an angle (as input) onto a number (as output).  The set of possible input values is the functions domain.  The set of possible output values is the functions range.  For any given input, there is exactly one output:  The 3 2 cannot be 9 today and 8 tomorrow!  Mathematical Laws  I'll introduce some laws. I'm not going to prove or derive them. I will ask you to accept them as being true.

Greek letters  It is a convention to use Greek letters to represent angles and some other mathematical terms: α alpha β beta γ gamma θ theta λ lambda π pi Δ (capital) Delta

Trigonometry  Trigonometry arises out of an observation about right angled triangles...  Take a right angled triangle and consider one of its angles (but NOT the right angle itself).  We'll call this angle α. The opposite side to α is y. The shorter side adjacent to (next to) α is x. The longest side of the triangle (the hypotenuse) is h. o a

Trigonometry  There is a relationship between the angle and the lengths of the sides. This relationship is expressed through one of the trigonometric functions, e.g. sine (abbreviated to sin). sin( α ) = o / h o a

Values of sine degreessin (degrees) degreessin (degrees)

Trigonometry Function Name SymbolDefinition sinesinsin(α) = o / h cosinecoscos(α) = a / h tangenttantan(α) = o / a = sin(α) / cos(α) You need to be aware of three trigonometric functions: sine, cosine and tangent. o a

Radians  You will often come across angles measured in radians (rad), instead of degrees (deg)...  A radian is the angle formed by measuring one radius length along the circumference of a circle.  There are 2  radians in a complete circle ( = 360 ° )  deg = rad * 180 ° /   rad = deg *  / 180 °

Trigonometry

Trigonometric Functions  Sine, cosine and tangent are mathematical functions.  There are other trigonometric functions, but they are rarely used in computer programming.  Angles can be greater than 2  or less than -2 . Simply continue the rotation around the circle.  You can draw a graph of the functions. The x-axis is the angle and the y-axis is (for example) sin(x). If you graph out the sine function then you create a sine wave.

Sine Wave and Cosine Wave Image taken from Wikipedia

Tangent Wave Image taken from Wikipedia

C++  C++ has functions for sine, cosine and tangent within its libraries.  Use the maths or complex libraries:  The standard C++ functions use radians, not degrees. #include using namespace std; float rad; float result; result = sin(rad); result = cos(rad); result = tan(rad);

PI  Written using the Greek letter .  Otherwise use the English transliteration "Pi".   is a mathematical constant.  (approximately).   is the ratio of the circumference of a circle to its diameter.  This value holds true for any circle, no matter what its size. It is therefore a constant.

Circles  The constant  is derived from circles so useful to look at these.  Circles are a basic shape.  Circumference is the length around the circle.  Diameter is the width of a circle at its largest extent, i.e. the diameter must go through the centre of the circle.  Radius is a line from the centre of the circle to the edge (in any direction).

Circles  A tangent is a line drawn perpendicular to (at right angles to) the end point of a radius.  You may know these from drawing splines (curves) in 3ds Max.  You'll see them when you generate splines in graphics and AI.  A chord is line connecting two points on a circle.

Circles  A segment is that part of a circle made by chord, i.e. a line connecting two points on a circle.  A sector is part of a circle in which the two edges are radii. sector

Circle  Using Cartesian coordinates.  Centre of the circle is at (a, b).  The length of the radius is r.  The length of the diameter is d.

Points on a Circle  Imagine a line from the centre of the circle to (x,y)   is the angle between this line and the x-axis.

Identities

Trigonometric Relationships  This relationship is for right-angled triangles only: Where

Trigonometric Relationships  These relationships are for right-angled triangles only:

Properties of triangles  This property holds for all triangles and not just right- angled ones.  The angles in a triangle can be related to the sides of a triangle.

Properties of triangles  These hold for all triangles

Inverses  Another bit of terminology and convention you need to be familiar with.  An inverse function is a function which is in the opposite direction. An inverse trigonometric function reverses the original trigonometric function, so that  If x = sin(y)theny = arcsin(x)  The inverse trigonometric functions are all prefixed with the term "arc": arcsine, arccosine and arctangent.  In C++: asin()acos()atan()

Inverses  The notation sin -1, cos -1 and tan -1 is common.  We know that trigonometric functions can produce the same result with different input values, e.g. sin(75 o ) and sin(105 o ) are both  Therefore an inverse trigonometric function typically has a restricted range so only one value can be generated.

Inverses FunctionDomainRange