Geometria Computacional 2D

Similar documents
Practice Problems for Exam 3 (Solutions) 1. Let F(x, y) = xyi+(y 3x)j, and let C be the curve r(t) = ti+(3t t 2 )j for 0 t 2. Compute F dr.

MATH Final Review

Name: SOLUTIONS Date: 11/9/2017. M20550 Calculus III Tutorial Worksheet 8

MTHE 227 Problem Set 2 Solutions

Solutions to old Exam 3 problems

3 = arccos. A a and b are parallel, B a and b are perpendicular, C a and b are normalized, or D this is always true.

Math 461 Homework 8. Paul Hacking. November 27, 2018

Math 461 Homework 8 Paul Hacking November 27, 2018

10.1 Curves Defined by Parametric Equation

Practice Final Solutions

Exercises for Multivariable Differential Calculus XM521

SOLUTIONS TO SECOND PRACTICE EXAM Math 21a, Spring 2003

1.1 Single Variable Calculus versus Multivariable Calculus Rectangular Coordinate Systems... 4

MATH 228: Calculus III (FALL 2016) Sample Problems for FINAL EXAM SOLUTIONS

(1) Recap of Differential Calculus and Integral Calculus (2) Preview of Calculus in three dimensional space (3) Tools for Calculus 3

MA3D9. Geometry of curves and surfaces. T (s) = κ(s)n(s),

MATH 2433 Homework 1

(b) Find the range of h(x, y) (5) Use the definition of continuity to explain whether or not the function f(x, y) is continuous at (0, 0)

MATH 280 Multivariate Calculus Fall Integrating a vector field over a curve

Tangent and Normal Vector - (11.5)

MATH 32A: MIDTERM 1 REVIEW. 1. Vectors. v v = 1 22

16.2 Line Integrals. Lukas Geyer. M273, Fall Montana State University. Lukas Geyer (MSU) 16.2 Line Integrals M273, Fall / 21

SOME PROBLEMS YOU SHOULD BE ABLE TO DO

Math Vector Calculus II

MATH 317 Fall 2016 Assignment 5

Mathematics (Course B) Lent Term 2005 Examples Sheet 2

(a) The points (3, 1, 2) and ( 1, 3, 4) are the endpoints of a diameter of a sphere.

MA 351 Fall 2007 Exam #1 Review Solutions 1

x + ye z2 + ze y2, y + xe z2 + ze x2, z and where T is the

Parametric Functions and Vector Functions (BC Only)

JUST THE MATHS UNIT NUMBER INTEGRATION APPLICATIONS 10 (Second moments of an arc) A.J.Hobson

Curves - A lengthy story

Calculus III. Math 233 Spring Final exam May 3rd. Suggested solutions

CHAPTER 6 VECTOR CALCULUS. We ve spent a lot of time so far just looking at all the different ways you can graph

APPM 2350, Summer 2018: Exam 1 June 15, 2018

1 + f 2 x + f 2 y dy dx, where f(x, y) = 2 + 3x + 4y, is

MTH 277 Test 4 review sheet Chapter , 14.7, 14.8 Chalmeta

BROWN UNIVERSITY MATH 0350 MIDTERM 19 OCTOBER 2017 INSTRUCTOR: SAMUEL S. WATSON

Practice Problems for the Final Exam

Math 234. What you should know on day one. August 28, You should be able to use general principles like. x = cos t, y = sin t, 0 t π.

Tangent and Normal Vector - (11.5)

Math 273 Solutions to Review Problems for Exam 1

10.3 Parametric Equations. 1 Math 1432 Dr. Almus

EXAM 2 ANSWERS AND SOLUTIONS, MATH 233 WEDNESDAY, OCTOBER 18, 2000

Exam 1 Review SOLUTIONS

Geometry and Motion Selected answers to Sections A and C Dwight Barkley 2016

Contents. MATH 32B-2 (18W) (L) G. Liu / (TA) A. Zhou Calculus of Several Variables. 1 Multiple Integrals 3. 2 Vector Fields 9

e x2 dxdy, e x2 da, e x2 x 3 dx = e

Volumes of Solids of Revolution Lecture #6 a

5.2 The Levi-Civita Connection on Surfaces. 1 Parallel transport of vector fields on a surface M

DO NOT BEGIN THIS TEST UNTIL INSTRUCTED TO START

Faculty of Engineering, Mathematics and Science School of Mathematics

BROWN UNIVERSITY MATH 0350 MIDTERM 19 OCTOBER 2017 INSTRUCTOR: SAMUEL S. WATSON. a b. Name: Problem 1

0, such that. all. for all. 0, there exists. Name: Continuity. Limits and. calculus. the definitionn. satisfying. limit. However, is the limit of its

Practice problems for Exam 1. a b = (2) 2 + (4) 2 + ( 3) 2 = 29

Tangent and Normal Vectors

Math 210, Final Exam, Spring 2012 Problem 1 Solution. (a) Find an equation of the plane passing through the tips of u, v, and w.

Parametric Curves You Should Know

Math 212-Lecture 20. P dx + Qdy = (Q x P y )da. C

WORKSHEET #13 MATH 1260 FALL 2014

Math 103, Review Problems for the First Midterm

Section Vector Functions and Space Curves

Midterm 1 Review. Distance = (x 1 x 0 ) 2 + (y 1 y 0 ) 2.

Solutions for the Practice Final - Math 23B, 2016

OHSx XM521 Multivariable Differential Calculus: Homework Solutions 14.1

Math 20C Homework 2 Partial Solutions

AP Calculus (BC) Chapter 10 Test No Calculator Section. Name: Date: Period:

One side of each sheet is blank and may be used as scratch paper.

9.4 CALCULUS AND PARAMETRIC EQUATIONS

MATH 32A: MIDTERM 2 REVIEW. sin 2 u du z(t) = sin 2 t + cos 2 2

Calculus: Several Variables Lecture 27

Calculus with Analytic Geometry 3 Fall 2018

Math S1201 Calculus 3 Chapters , 14.1

Arc Length and Riemannian Metric Geometry

Math 120: Precalculus Autumn 2017 A List of Topics for the Final

Practice problems from old exams for math 132 William H. Meeks III

Math 263 Final. (b) The cross product is. i j k c. =< c 1, 1, 1 >

1 4 (1 cos(4θ))dθ = θ 4 sin(4θ)

CALCULUS 3 February 6, st TEST

7a3 2. (c) πa 3 (d) πa 3 (e) πa3

Topic 2-2: Derivatives of Vector Functions. Textbook: Section 13.2, 13.4

Look out for typos! Homework 1: Review of Calc 1 and 2. Problem 1. Sketch the graphs of the following functions:

Bézier Curves and Splines

Figure: Aparametriccurveanditsorientation

Math 3435 Homework Set 11 Solutions 10 Points. x= 1,, is in the disk of radius 1 centered at origin

t f(u)g (u) g(u)f (u) du,

Figure 1: Functions Viewed Optically. Math 425 Lecture 4. The Chain Rule

Disclaimer: This Final Exam Study Guide is meant to help you start studying. It is not necessarily a complete list of everything you need to know.

Math 210, Final Exam, Practice Fall 2009 Problem 1 Solution AB AC AB. cosθ = AB BC AB (0)(1)+( 4)( 2)+(3)(2)

MATH H53 : Final exam

Lecture 6, September 1, 2017

APPM 2350 Section Exam points Wednesday September 26, 6:00pm 7:30pm, 2018

REVIEW 2, MATH 3020 AND MATH 3030

Mathematics Engineering Calculus III Fall 13 Test #1

Space curves, vector fields and strange surfaces. Simon Salamon

Math 23b Practice Final Summer 2011

MATH2000 Flux integrals and Gauss divergence theorem (solutions)

HOMEWORK 3 MA1132: ADVANCED CALCULUS, HILARY 2017

Math 114: Make-up Final Exam. Instructions:

Math 234 Exam 3 Review Sheet

Transcription:

Ole Peter Smith, IME, UFG ole@mat.ufg.br EMSL '10 15/10/2010/2010 UFU, Uberlândia-MG

The Road to Knowledge? Simple: Err, and Err, and Err again But Less, and Less, and Less Piet Hein Real programmers can write assembly code in any language Larry Wall TIMTOWTDI: There is more than one Way to Do It! Larry Wall

Curiosity Inteligência: Potencial Sabedoria: Disciplina & Curiosidade Graphics Programming Math & Art Visualization - Animation The Road to Wisdom? Simple, my Friend: Err, Err and Err Again... But Less and Less and Less Programming vs. Medicine... Piet Hein

The Mathematics Geometria Analítica 2D - 3D Planos - Curvas - Superfícies Euclidian Álgebra Linear Matrizes - Transformações - AutoVetor/Valor Geometria Diferencial Cinemática Análise Numérica Ferramenta Geometria Projetiva Noneuclidian Fractais

Implementation Language: Perl, PHP, C/C++, Java,... Graphics Library: GD - Others Ex: Apache - HTML - PHP - Browser www.apache.org www.php.org - www.perl.org www.gd.org O mais Importante não é Saber de Tudo O mais Importante Saber onde Procurar! Limite da Minha Pesquisa Pessoal: Minha Própria Inteligência, Disciplina e Curiosidade

Estrutura: $image=createimageobject; $image->drawsomething; $image->imageline10,10,390,390; $image->imagearcfilled200,200,10,10; $image->writeimage; $image->close; Pixels - Coordenadas

Image Formats: PNG - GIF - JPG -... Animated GIF - MPG Resolution: X, Y = 800x600 Physical: [x min, x max ]x[y min, y max ] Canonical: [0, 1]x[0, 1] X, Y = 0, 0 é Upper Left Linear Transformation: X Y A X = A x x = A 1 X a = A x = 11 a 12 x = x min y min a 21 a 22 0 = Y, A y x max y max a 11 x + a 12 y a 21 x + a 22 y = X 0

Image A x min x max y min y max = 0 X Y 0 A = 0 X Y 0 X 1 Tarefa: Inversa de Matriz Regular det 0 - Gauss - LU Tarefa: Imagem de Aplicação Linear: for $i=0;$i<$dim;$i++ { $X[$i]=0.0; for $j=0;$j<$dim;$j++ { $X[$i]+=$A[$i][$j]*$x[$j]; } $X[i]=$sum }

Dot Product Measure: Lenths and Angles x = x 1,..., x n, y = y 1,..., y n x y = x 1 y 1 +... + x n y n = $dot=0.0; for $i=0;$i<$n;$i++ { $dot+=$x[$i]*$y[$i]; } n i=1 x i y i = x T y Length: x = x x Angle: cos a, b = a b a b

Plane Curves Equation: F x, y = 0 x Function: rx = f x Parametrization: rt = xt yt, t 1 t t 2 $dt=$t2-$t1/$n-1; for $i=0,$t=$t1;$i<$n;$i++ { array_push$ps,arrayx$t,y$t; } Building Stones: Line Segments - ArcFilled

Line Line Segment: p 1 = x 1, y 2 e p 2 = x 2, y 2. r = p 2 p 1. Versor de r = r x, r y : n = r = r y, r x Parametrization/Convex Combination: x y = x 1 y 1 + t x 2 x 1 y 2 y 1, 0 t 1 Normal: a b = ry r x Equation: ax x 1 + by y 1 = 0 ax + by = ax 1 + by 1 = c

Circle/Ellipse Center: p c = x c, y c, half-axes: a, b a = b: Circle Equation: x x c a 2 + y y c b 2 = 1 Parametrization: xt yt = x c + a cos t y c + b sin t 0 t 2π

Hiperbola Center: p c = x c, y c e halfaxes, a, b Equation: x x c a 2 y y c Parametrization: xt = yt b x c + a cosh t y c + b sinh t 2 = ±1 α t α Funções Hiperbólicas cosh t = et + e t sinh t = et e t 2 2 cosh 2 t sinh 2 t = 1

Cinematics Position: rt = xt yt Tangent & Velocity: r x t = t y vt = r t t r t = Unit Tangent & Normal: tt = 1 x t vt y t Acceleration:, nt = tt = 1 vt r t = x t y t Arc Length: st st 0 = t t 0 x t 2 + y t 2 dt 1 x t 2 + y t 2 y t x t,

Curvature Oscillating Circe: Same tangent & Accelleration ρ = [r tr t] x t 2 + y t 23 Radius of Oscillating Circe, ρ: Curvature: ρt = [r tr t] x t 2 + y t 23 κt = 1 ρt Curvature Vector & Center of Curvature Curvature: p c t = rt + ρtnt

Transformations Linear: f x = Ax, f αx + βy = αf x + βf y If det A 0: f 1 y = A 1 y An: f x = Ax + b Rotate Coordinate System: x = Dx, D 1 = D T D ortogonal: Preserves Lengths and Angles: D x D x = x x

Scaling Scaling resp. Origin, factor λ R around x-axis: x λ 0 λx = x = = Lλ x 0 1 y λ = 1: Identity, I λ = 1: Reection in y axis < Rev. Orient. λ = 0: Projection onto y axis λ > 1: Expansion 0 < λ < 1: Dilatation Bidirectional Scaling: x λx 0 λx x = x = = Lλ 0 λ y λ x, λ y x y y λx 0 0 λ y = λx 0 0 1 1 0 0 λ y

Translation & Rotation Translation, a - Não Linear: x = t + x Rotation resp. Origin, Angle θ - Linear: x cos θ sin θ = x = Dθ x, sin θ cos θ Dθ 1 = D θ = Dθ T

Projetive Geometry Camera at Origin, Looking at 0, 0, 1 Translation in non-linear... That Really Sucks! Remedy: Drawing plane is z = 1 instead of z = 0. Point in R 2 : x, y. Point in R 3 : x, y, 1. Do Something to Point Point in R 3 : x, y, z. Point in R 2, z 0: x/z, y/z. Point in Innity: z = 0: x, y.

Projetive, Translation Translation: Tt = 1 0 t x 0 1 t y 0 0 1 x y 1 = x + t x y + t y 1 Inverse: 1 0 t x 0 1 t y 0 0 1 x y 1 = x t x y t y 1 Tt 1 = T t

Projetive, Rotation Rotation: Rθ x y 1 = cos θ sin θ 0 sin θ cos θ 0 0 0 1 Rθ 1 = R θ = Rθ T Rotation, Angle θ, Resp. to p = p x, p y : 1: Translation to p: Tp 2: Rotation by new Origin: Rθ 3: Translation back: p T p = Tp 1 Apply from Right: R θ = Tp 1 RθTp Similar Matrices: B = D 1 AD Describe same Transformation in Dierent Bases x y 1

Scaling Unidirectional Scaling with Resp. to y-axis: λ 0 0 0 1 0 0 0 1 Unidirectional Scaling with Resp. to e = cos θ, sin θ: Coordinate System: e, ê cos θ sin θ Dθ = sin θ cos θ, x old = Dθx new x new = Dθ 1 x old 1: Change Coordinate System: cos θ sin θ 0 Rθ = sin θ cos θ 0 0 0 1

Scaling 2: Scale with Resp. to y-axis Lλ = λ 0 0 0 1 0 0 0 1 3: Rotate back R θ = Rθ 1 = cos θ sin θ 0 sin θ cos θ 0 0 0 1 Composition from right: Again: Similar Matrices Rθ 1 LλRθ

Animation $nimages=79; $dt=2.0*3.1415927/$nimages; system"/bin/rm Wheel*.gif"; for $t=0.0,$i=0;$i<$nimages;$i++ { $image = ImageCreate... $center=array3.0,3.0; DrawWheel$image,200,5,$center,0.2,2.0,$color,$t; imagegif$image,"wheel.$i.gif"; $t+=$dt; } //Merda! PHP nao tem suporte para GIF animado... system"/usr/bin/convert -delay 2 -loop 0 ". "Wheel.*.gif Wheel.gif";

Given: Fixed Curve X t, Y t, 0 t 1. Circle to Roll, Radius r Mark Point Initially: Point in X 0, Y 0. Roll Circle without Sliding: Cycloid: Circle on Line st = rθ Epicycloid: Circle Outside Circle Hypocycloid: Circle Inside Circle Trochoid, Epitrochoid, Hypotrochoid,... Oloid

Cycloid

Trochoid

Trochoid

Epicycloid

Hypocycloid

Oloid