Translate, Rotate, Matrix

Slides:



Advertisements
Similar presentations
Pass by Value. COMP104 Pass by Value / Slide 2 Passing Parameters by Value * A function returns a single result (assuming the function is not a void function)
Advertisements

This terms course Last term we both worked on learning 2 things –Processing –The concepts of graphics etc. This term will focus more on the basic concepts.
A Quick Introduction to Processing
1 3D Vector & Matrix Chapter 2. 2 Vector Definition: Vector is a line segment that has the direction. The length of the line segment is called the magnitude.
Translate, Rotate, Matrix Pages Function Function Definition Calling a function Parameters Return type and return statement.
Translation and Rotation in 2D and 3D David Meredith Aalborg University.
Informationsteknologi Wednesday, November 7, 2007Computer Graphics - Class 51 Today’s class Geometric objects and transformations.
, Fall 2006IAT 800 Lab 2: Polygons, Transformations, and Arrays.
IAT 800 Lecture 4. Sept 18, Fall 2006IAT 8002 Outline  Programming concepts –Methods –Classes  Talk about project 1  Reading: Read Chapters 1-4 of.
1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects Allow definitions of objects in own coordinate systems.
CSC 123 – Animating characters Hierarchical modeling Zoë Wood.
13.2 Angles and Angle Measure
4.2 Adding and Subtracting Matrices 4.3 Matrix Multiplication
Using Matrices to Perform Geometric Transformations
IAT 355 Lecture 4 Computer Graphics: Rocket. May 9, 2014IAT 3552 Outline  Programming concepts –Programming Computer Graphics –Transformations –Methods.
2002 by Jim X. Chen George Mason University Transformation and Viewing.1. Plane Example: J2_0_2DTransform.
13.1 Matrices and Their Sums
1.4 Solving Equations ●A variable is a letter which represents an unknown number. Any letter can be used as a variable. ●An algebraic expression contains.
Transforming Geometry Groundhog Day. Drawing Quads In a 300 by 200 window, draw two quads of different colors. Don’t show the grey grid.
Write the following statement as a mathematical expression using parenthesis and brackets and then evaluate. 51. Multiply 5 by 3.From this product.
B. RAMAMURTHY Simulating Motion and Implementing Animation.
Composite Transformation: Composite objects are several objects and scripts bundled together exposed to the application as a single object. There are number.
Lesson 4-2 Operations on Functions. We can do some basic operations on functions.
Review Inheritance Overloading and overriding. example1.pde.
2-D Shapes, Color, and simple animation. 7 Basic Shapes Ellipse :: ellipse() Arc :: arc() Line :: line() Point :: point() Rectangle :: rect() Triangle.
Computer Graphics 3D Transformations. Translation.
4-4 Geometric Transformations with Matrices Objectives: to represent translations and dilations w/ matrices : to represent reflections and rotations with.
Transformations of Geometric Figures Dr. Shildneck Fall, 2015.
Section 9.2 Adding and Subtracting Matrices Objective: To add and subtract matrices.
Animation Pages Function Function Definition Calling a function Parameters Return type and return statement.
Notes Over 8 – 5 Add. + Add the whole numbers. Add the fractions and reduce if needed.
EXAMPLE 1 Add and subtract matrices
Writing Algebraic Expressions SWBAT write an algebraic expression from a written expression.
Creating and Using Class Methods. Definition Class Object.
Computation as an Expressive Medium Lab 2: Polygons, Transformations, and Arrays (Oh My) Micah.
Computer Science I Text input. Transformations. Yet another jigsaw. Classwork/Homework: Create new application making use of transformations.
Simplifying Radical Expressions Objective: Add, subtract, multiply, divide, and simplify radical expressions.
Int fact (int n) { If (n == 0) return 1; else return n * fact (n – 1); } 5 void main () { Int Sum; : Sum = fact (5); : } Factorial Program Using Recursion.
3.5 Perform Basic Matrix Operations Add Matrices Subtract Matrices Solve Matric equations for x and y.
Precalculus Section 14.1 Add and subtract matrices Often a set of data is arranged in a table form A matrix is a rectangular.
Coordinate Algebra Practice EOCT Answers Unit 5.
12-1 Organizing Data Using Matrices
Computer Graphics: Rocket, Java: Class
Computer Graphics CC416 Week 15 3D Graphics.
Chapter 14, Translate & Rotate
Polygons, Transformations, and Arrays
FIGURE 4-10 Function Return Statements
Introduction You can change a function’s position or shape by adding or multiplying a constant to that function. This is called a transformation. When.
Trigonometric Definitions
Transformations 6 University of British Columbia
FIGURE 4-10 Function Return Statements
Objective Describe how changing slope and y-intercept affect the graph of a linear function. Translations, Rotations, and Reflections. What will happen.
4-4 Geometric Transformations with Matrices
Algebra 1 Section 8.4.
Perform Function Operations and Composition
To get y, multiply x by 3 then add 2 To get y, multiply x by negative ½ then add 2 To get y, multiply x by 2 then subtract 3 To get y, multiply x.
Transformations on the coordinate plane
FIGURE 4-10 Function Return Statements
Objective - To add and subtract decimals.
Motion in the Coordinate Plane
Animation Pages
Transformations on the coordinate plane
Splash Screen.
Computation as an Expressive Medium
Trigonometry & Random March 2, 2010.
FIGURE 4-10 Function Return Statements
Transformations with Matrices
Using Matrices to Perform Geometric Transformations
Decode the message: (1, -5) (-5, -3) (5, -5) (-2, -3) (4, 5) (1, 3) (4, 5) (1, -3) (-4, 4) (3, 2) (-5, -3) (5,-5) Write your own message!
Coordinate Algebra Practice EOCT Answers Unit 5.
Presentation transcript:

Translate, Rotate, Matrix Transform1: Translate, Matrices Pages 133-143

Review Curve Vertex At least 4 points: Control point1, vertex 1, vertex 2, control point2 A smooth curve is drawn between vertext1 and vertex 2 based on the control points.

Function Function Definition Calling a function Parameters Return type and return statement

Function: Intuitive Understanding Function F F(x) X

Examples Add 10 20 10 X=10, y=4 Multiply (x,y) 40 Subtract 6 4

Function concept int z = add(34, 10); // function call Function definition: int add (int x , int y) // x,y formal parameters { int sum;// sum is a local variable sum = x + y; return sum; } add 34 10 X Y sum

translate Translate function moves the origin by the amount specified int x,y; x = 10; y = 10; void draw() { background(30,50,60); pushMatrix(); translate(x,y); rect(0,5,70,30); x++; if (x> width) x = 0; y++; if (y>height) y = 0; popMatrix(); }