Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSC461: Lecture 13 Coordinates Objectives Introduce concepts such as dimension and basis Introduce concepts such as dimension and basis Introduce coordinate.

Similar presentations


Presentation on theme: "CSC461: Lecture 13 Coordinates Objectives Introduce concepts such as dimension and basis Introduce concepts such as dimension and basis Introduce coordinate."— Presentation transcript:

1 CSC461: Lecture 13 Coordinates Objectives Introduce concepts such as dimension and basis Introduce concepts such as dimension and basis Introduce coordinate systems for representing vectors spaces and frames for representing affine spaces Introduce coordinate systems for representing vectors spaces and frames for representing affine spaces Discuss change of frames and basis Discuss change of frames and basis Introduce homogeneous coordinates Introduce homogeneous coordinates

2 Linear Independence A set of vectors v 1, v 2, …, v n is linearly independent if A set of vectors v 1, v 2, …, v n is linearly independent if  1 v 1 +  2 v 2 +…  n v n =0 iff  1 =  2 =…=0  1 v 1 +  2 v 2 +…  n v n =0 iff  1 =  2 =…=0 If a set of vectors is linearly independent, we cannot represent one in terms of the others If a set of vectors is linearly independent, we cannot represent one in terms of the others If a set of vectors is linearly dependent, as least one can be written in terms of the others If a set of vectors is linearly dependent, as least one can be written in terms of the others

3 Dimension In a vector space, the maximum number of linearly independent vectors is fixed and is called the dimension of the space In a vector space, the maximum number of linearly independent vectors is fixed and is called the dimension of the space In an n-dimensional space, any set of n linearly independent vectors form a basis for the space In an n-dimensional space, any set of n linearly independent vectors form a basis for the space Given a basis v 1, v 2,…., v n, any vector v can be written as Given a basis v 1, v 2,…., v n, any vector v can be written as v=  1 v 1 +  2 v 2 +….+  n v n v=  1 v 1 +  2 v 2 +….+  n v n where the {  i } are unique

4 Representation Until now we have been able to work with geometric entities without using any frame of reference, such as a coordinate system Until now we have been able to work with geometric entities without using any frame of reference, such as a coordinate system Need a frame of reference to relate points and objects to our physical world. Need a frame of reference to relate points and objects to our physical world. For example, where is a point? Can’t answer without a reference system For example, where is a point? Can’t answer without a reference system World coordinates World coordinates Camera coordinates Camera coordinates

5 Coordinate Systems Consider a basis v 1, v 2,…., v n Consider a basis v 1, v 2,…., v n A vector is written v=  1 v 1 +  2 v 2 +….+  n v n A vector is written v=  1 v 1 +  2 v 2 +….+  n v n The list of scalars {  1,  2, ….  n }is the representation of v with respect to the given basis The list of scalars {  1,  2, ….  n }is the representation of v with respect to the given basis We can write the representation as a row or column array of scalars We can write the representation as a row or column array of scalars a=[  1  2 ….  n ] T =

6 Example V=2v1+3v2-4v3 V=2v1+3v2-4v3 A=[2 3 –4] A=[2 3 –4] T Note that this representation is with respect to a particular basis Note that this representation is with respect to a particular basis For example, in OpenGL we start by representing vectors using the world basis but later the system needs a representation in terms of the camera or eye basis For example, in OpenGL we start by representing vectors using the world basis but later the system needs a representation in terms of the camera or eye basis

7 Coordinate Systems Which is correct? Which is correct? Both are because vectors have no fixed location Both are because vectors have no fixed location v v

8 Frames Coordinate System is insufficient to present points Coordinate System is insufficient to present points If we work in an affine space we can add a single point, the origin, to the basis vectors to form a frame If we work in an affine space we can add a single point, the origin, to the basis vectors to form a frame P0P0 v1v1 v2v2 v3v3

9 Frame Representation Frame determined by (P 0, v 1, v 2, v 3 ) Frame determined by (P 0, v 1, v 2, v 3 ) Within this frame, every vector can be written as Within this frame, every vector can be written as v=  1 v 1 +  2 v 2 +….+  n v n v=  1 v 1 +  2 v 2 +….+  n v n Every point can be written as Every point can be written as P = P 0 +  1 v 1 +  2 v 2 +….+  n v n P = P 0 +  1 v 1 +  2 v 2 +….+  n v n

10 Confusing Points and Vectors Consider the point and the vector Consider the point and the vector Point: P = P 0 +  1 v 1 +  2 v 2 +….+  n v n Point: P = P 0 +  1 v 1 +  2 v 2 +….+  n v n Vector: v=  1 v 1 +  2 v 2 +….+  n v n Vector: v=  1 v 1 +  2 v 2 +….+  n v n They appear to have the similar representations p=[  1  2  3 ] v=[  1  2  3 ] which confuse the point with the vector A vector has no position A vector has no position v p v can place anywhere fixed


Download ppt "CSC461: Lecture 13 Coordinates Objectives Introduce concepts such as dimension and basis Introduce concepts such as dimension and basis Introduce coordinate."

Similar presentations


Ads by Google