Chapter 1: Cartesian Coordinate Systems

Slides:



Advertisements
Similar presentations
By bithun jith maths project.
Advertisements

Trigonometric Functions
Special Angles and their Trig Functions
Trigonometric Functions
Copyright © Cengage Learning. All rights reserved.
Math 4 S. Parker Spring 2013 Trig Foundations. The Trig You Should Already Know Three Functions: Sine Cosine Tangent.
Quadratic & Polynomial Functions
An identity is an equation that is true for all defined values of a variable. We are going to use the identities that we have already established and establish.
20 Days. Three days  One radian is the measure of the central angle of a circle subtended by an arc of equal length to the radius of the circle.
Unit 8: Modeling with Trigonometric Functions
Trigonometric Functions
Properties of Scalars and Vectors. Vectors A vector contains two pieces of information: specific numerical value specific direction drawn as arrows on.
Chapter 6: Trigonometry 6.3: Angles and Radian Measure
Copyright © 2009 Pearson Education, Inc. CHAPTER 6: The Trigonometric Functions 6.1The Trigonometric Functions of Acute Angles 6.2Applications of Right.
Introduction The six trigonometric functions (sine, cosine, tangent, cosecant, secant, and cotangent) can be used to find the length of the sides of a.
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
Chapter 2: Vectors Ian Parberry University of North Texas Fletcher Dunn Valve Software 3D Math Primer for Graphics and Game Development.
17-1 Trigonometric Functions in Triangles
Connecting Algebra with the Coordinate Plane.
Copyright © 2005 Pearson Education, Inc. Chapter 3 Radian Measure and Circular Functions.
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.
Chapter 3 Trigonometric Functions of Angles Section 3.2 Trigonometry of Right Triangles.
7.5 The Other Trigonometric Functions. 7.5 T HE O THER T RIG F UNCTIONS Objectives:  Evaluate csc, sec and cot Vocabulary: Cosecant, Secant, Cotangent.
Chapter 7: Vectors and the Geometry of Space
Trigonometric Functions of Any Angle & Polar Coordinates
7.5 The Other Trigonometric Functions
Maths Methods Trigonometric equations K McMullen 2012.
Analytic Geometry Chapter 5.
Copyright  2011 Pearson Canada Inc. Trigonometry T - 1.
1 Chapter 1 Preliminaries Functions and 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.
Chapter 3 Vectors.
P.5 Trigonometric Function.. A ray, or half-line, is that portion of a line that starts at a point V on the line and extends indefinitely in one direction.
Slide 8- 1 Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Section 7.2 Trigonometric Functions of Acute Angles.
Chapter 3 Vectors. Coordinate Systems Used to describe the position of a point in space Coordinate system consists of a fixed reference point called the.
Forces in 2D Chapter Vectors Both magnitude (size) and direction Magnitude always positive Can’t have a negative speed But can have a negative.
7-5 The Other Trigonometric Functions Objective: To find values of the tangent, cotangent, secant, and cosecant functions and to sketch the functions’
Copyright © Cengage Learning. All rights reserved. CHAPTER Radian Measure 3.
R I A N G L E. hypotenuse leg In a right triangle, the shorter sides are called legs and the longest side (which is the one opposite the right angle)
Math Vocabulary Project By: J’amezz Martin. Integer A whole number; a number that is not a fraction.
Chapter 3 – Two Dimensional Motion and Vectors
Section 5.1 Section 5.1 Vectors In this section you will: Section ●Evaluate the sum of two or more vectors in two dimensions graphically. ●Determine.
Vectors and the Geometry of Space 2015
WEEK 10 TRIGONOMETRIC FUNCTIONS TRIGONOMETRIC FUNCTIONS OF REAL NUMBERS; PERIODIC FUNCTIONS.
Section 5.3 Evaluating Trigonometric Functions
Trigonometric Functions: The Unit Circle Section 4.2.
Chapter 3 Vectors. Vector quantities  Physical quantities that have both numerical and directional properties Mathematical operations of vectors in this.
Trigonometric Functions of Any Angle & Polar Coordinates
An angle is formed by two rays that have a common endpoint. One ray is called the initial side and the other the terminal side.
Chapter 3–2: Vector Operations Physics Coach Kelsoe Pages 86–94.
IB Math HL - Santowski 1 Lesson 21 - Review of Trigonometry IB Math HL – Santowski 12/25/2015.
6.2 Trigonometric functions of angles
Chapter 5 Trigonometric Functions Copyright © 2014, 2010, 2007 Pearson Education, Inc Angles and Radian Measure.
VECTORS AND THE GEOMETRY OF SPACE 10. VECTORS AND THE GEOMETRY OF SPACE In this chapter, we introduce vectors and coordinate systems for three-dimensional.
The Fundamental Identity and Reference Angles. Now to discover my favorite trig identity, let's start with a right triangle and the Pythagorean Theorem.
Chapter 2 Trigonometric Functions of Real Numbers Section 2.2 Trigonometric Functions of Real Numbers.
VECTORS. BIG IDEA: Horizontal and vertical motions of an object are independent of one another.
WARM UP Write the general equation of an exponential function. Name these Greek letters β, θ, Δ, ε What transformation of the pre-image function y = x.
Trigonometric Functions: The Unit Circle  Identify a unit circle and describe its relationship to real numbers.  Evaluate trigonometric functions.
Trigonometric Functions of Angles 6. Trigonometry of Right Triangles 6.2.
WARM UP Find sin θ, cos θ, tan θ. Then find csc θ, sec θ and cot θ. Find b θ 60° 10 b.
Copyright © 2005 Pearson Education, Inc.. Chapter 3 Radian Measure and Circular Functions.
Trigonometric identities Trigonometric formulae
Section 4.2 The Unit Circle.
WARM UP 1. What is the exact value of cos 30°?
TRIGOMOMETRY RIGHT R I A N G L E.
Trigonometric Functions
PROJECT ACTIVITY : Trigonometry
Chapter 8 The Trigonometric Functions
Presentation transcript:

Chapter 1: Cartesian Coordinate Systems Fletcher Dunn Valve Software Ian Parberry University of North Texas 3D Math Primer for Graphics and Game Development

What You’ll See in This Chapter This chapter describes the basic concepts of 3D math. It is divided into five main sections. Section 1.1 reviews some basic principles of number systems, and The First Law of Computer Graphics. Since it is so basic, it won’t be covered in these notes. Section 1.2 introduces 2D Cartesian mathematics, the mathematics of flat surfaces. We will learn how to describe a 2D cartesian coordinate space and how to locate points using that space. In Section 1.3 extends these ideas into three dimensions. We will learn about left- and right-handed coordinate spaces, and establish some conventions that we will use later. Section 1.4 covers some odds and ends of math needed for the rest of the book. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Game Developers Word Cloud Chapter 1 Notes 3D Math Primer for Game Developers

Introduction and Section 1.1: 1D Mathematics Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Introduction 3D math is all about measuring locations, distances, and angles precisely and mathematically in 3D space. The most frequently used framework to perform such calculations using a computer is called the Cartesian coordinate system. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev René Descartes Cartesian mathematics was invented by (and is named after) French philosopher, physicist, physiologist, and mathematician René Descartes, 1596 - 1650. Descartes is famous not just for inventing Cartesian mathematics, which at the time was a stunning unification of algebra and geometry. He is also well-known for making a pretty good stab of answering the question “How do I know something is true?”, a question that has kept generations of philosophers happily employed. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev René Descartes, 1596 - 1650 (After Frans Hals, Portrait of René Descartes, from Wikimedia Commons.) Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev 1D Mathematics We assume that you already know about the natural numbers, the integers, the rational numbers, and the real numbers. On a computer you have to make do with shorts, ints, floats, and doubles. These have limited precision. We assume that you have a basic understanding about how numbers are represented on a computer. Remember the First Law of Computer Graphics: If it looks right, it is right. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Section 1.2: 2D Cartesian Space Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev The City of Cartesia As you can see from the map on the next slide, Center Street runs east-west through the middle of town. All other east-west streets are named based on whether they are north or south of Center Street, and how far away they are from Center Street. Examples of streets which run east-west are North 3rd Street and South 15th Street. The other streets in Cartesia run north-south. Division Street runs north-south through the middle of town. All other north-south streets are named based on whether they are east or west of Division street, and how far away they are from Division Street. So we have streets such as East 5th Street and West 22nd Street. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev 2D Coordinate Spaces All that really matters are the numbers. The abstract version of this is called a 2D Cartesian coordinate space. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Origin and Axes Every 2D Cartesian coordinate space has a special location, called the origin, which is the center of the coordinate system. The origin is analogous to the center of the city in Cartesia. Every 2D Cartesian coordinate space has two straight lines that pass through the origin. Each line is known as an axis and extends infinitely in both directions. The two axes are perpendicular to each other. (Caveat: They don't have to be, but most of the coordinate systems we will look at will have perpendicular axes.) Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Axes In the figure on the previous slide, the horizontal axis is called the x-axis, with positive x pointing to the right, and the vertical axis is the y-axis, with positive y pointing up. This is the customary orientation for the axes in a diagram. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Screen Space But it doesn’t have to be this way. It’s only a convention. In screen space, for example, +y points down. Screen space is how you measure on a computer screen, with the origin at the top left corner. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Axis Orientation There are 8 possible ways of orienting the Cartesian axes. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Locating Points in 2D Point (x,y) is located x units across and y units up from the origin. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Axis Equivalence in 2D These 8 alternatives can be obtained by rotating the map around 2 axes (any 2 will do). Surprisingly, this is not true of 3D coordinate space, as we will see later. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Examples Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Section 1.3: 3D Cartesian Space Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev 3D Cartesian Space Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Locating Points in 3D Point (x,y,z) is located x units along the x-axis, y units along the y-axis, and z units along the z-axis from the origin. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Axis Equivalence in 3D Recall that in 2D the alternatives for axis orientation can be obtained by rotating the map around 2 axes. As we said, this is not true of 3D coordinate space. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Visualizing 3D Space The usual convention is that the x-axis is horizontal and positive is right, and that the y-axis is vertical and positive is up The z-axis is depth, but should the positive direction go forwards “into” the screen or backwards “out from” the screen? Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Left-handed Coordinates +z goes “into” screen Use your left hand Thumb is +x Index finger is +y Second finger is +z Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Right-handed Coordinates + z goes “out from” screen Use your right hand Thumb is +x Index finger is +y Second finger is +z (Same fingers, different hand) Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Changing Conventions To swap between left and right-handed coordinate systems, negate the z. Graphics books usually use left-handed. Linear algebra books usually use right-handed. We’ll use left-handed. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Positive Rotation Use your left hand for a left-handed coordinate space, and your right hand for a right-handed coordinate space. Point your thumb in the positive direction of the axis of rotation (which may not be one of the principal axes). Your fingers curl in the direction of positive rotation. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Positive Rotation Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Our Convention For the remainder of these lecture notes, as in the book, we will use a left-handed coordinate system. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Section 1.4: Odds and Ends Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Odds and Ends of Math Used Summation and product notation: Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Angles An angle measures an amount of rotation in the plane. Variables for angles are often given the Greek letter θ. The most important units of measure are degrees (°) and radians (rad). Humans usually measure angles using degrees. One degree measures 1/360th of a revolution, so 360° is a complete revolution. Mathematicians, prefer to measure angles in radians, which is a unit of measure based on the properties of a circle. When we specify the angle between two rays in radians, we are actually measuring the length of the intercepted arc of a unit circle, as shown in the figure on the next slide. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev θ Radians Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Radians and Degrees The circumference of a unit circle is 2π radians, with π approximately equal to 3.14159265359. Therefore, 2π radians represents a complete revolution. Since 360° = 2π rad, 180° = π rad. To convert an angle from radians to degrees, we multiply by 180/π ≈ 57.29578 and to convert an angle from degrees to radians, we multiply by π/180 ≈ 0.01745329. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Trig Functions Consider the angle θ between the +x axis and a ray to the point (x,y) in this diagram. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Cosine & Sine The values of x and y, the coordinates of the endpoint of the ray, have special properties, and are so significant mathematically that they have been assigned special functions, known as the cosine and sine of the angle. cos θ = x sin θ = y You can easily remember which is which because they are in alphabetical order: x comes before y, and cos comes before sin. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev More Trig Functions The secant, cosecant, tangent, and cotangent. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Back to Sine and Cos If we form a right triangle using the rotated ray as the hypotenuse, we see that x and y give the lengths of the adjacent and opposite legs of the triangle, respectively. The terms adjacent and opposite are relative to the angle θ. Alphabetical order is again a useful memory aid: adjacent and opposite are in the same order as the corresponding cosine and sine. Let the variables hypotenuse, adjacent, and opposite stand for the lengths of the hypotenuse, adjacent leg, and opposite leg, respectively, as shown on the next slide. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Primary Trig Functions Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Mnemonics for Trig Functions Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Alternative Forms Some old horse Caught another horse Taking oats away Some old hippy Caught another hippy Tripping on acid Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Identities Related to Symmetry Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

The Pythagorean Theorem The sum of the squares of the two legs of a right triangle (those sides that are adjacent to the right angle) is equal to the square of the hypotenuse (the leg opposite the right angle). That is, a2 + b2 = c2. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Pythagorean Identities These identities can be derived by applying the Pythagorean theorem to the unit circle. sin2 θ + cos2 θ = 1 1 + tan2 θ = sec2 θ 1 + cot2 θ = csc2 θ Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Sum & Difference Identities Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

Double Angle Identities If we apply the sum identities to the special case where a and b are the same, we get the following double angle identities. Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Law of Sines Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

3D Math Primer for Graphics & Game Dev Law of Cosines Chapter 1 Notes 3D Math Primer for Graphics & Game Dev

That concludes Chapter 1. Next, Chapter 2: Vectors Chapter 1 Notes 3D Math Primer for Graphics & Game Dev