Docsity

Vector Product and Metric Tensors, Slides of Computer Graphics

Toggle sidebar
bg1
Vector Product
Definition
For Cartesian Reference Frame
Properties
AntiCommutative
Not Associative
Distributive
0,sin||||2121 VVVV u
),,( 21212121212121 xyyxzxxzyzzy VVVVVVVVVVVVVV
Cross Product, Outer Product
V1
V2
V1 V2
u
)( 1221 VVVV
321321 )()( VVVVVV
)()()( 3121321 VVVVVVV
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Vector Product and Metric Tensors and more Slides Computer Graphics in PDF only on Docsity!

Vector Product

 Definition

 For Cartesian Reference Frame

 Properties

 AntiCommutative  Not Associative  Distributive

V 1  V 2  u | V 1 ||V 2 |sin , 0  

V 1 V 2 (V (^1) yV 2 z V 1 zV 2 y,V 1 zV 2 x V 1 xV 2 z,V 1 xV 2 y V 1 yV 2 x)

Cross Product, Outer Product V 1

V 1  V (^2) V 2 u

V 1 V 2 (V 2 V 1 ) V 1 (V 2 V 3 ) (V 1 V 2 )V 3 V 1 (V 2 V 3 )(V 1 V 2 )(V 1 V 3 )

Examples

 Scalar Product  Vector Product

Normal Vector of the Plane

V 2

V 1

Angle between Two Edges

(x 2 ,y 2 )

(x 0 ,y 0 ) (x^1 ,y^1 )

Orthonormal Basis

 Normal Basis + Orthogonal Basis

 Example

 Orthonormal basis for 2D Cartesian reference frame

 Orthonormal basis for 3D Cartesian reference frame

j k

k j k

k k   

0 , for all

1 , for all u u

u u

u x   1 , 0  u y   0 , 1 

u x   1 , 0 , 0  u y   0 , 1 , 0  u z   0 , 0 , 1 

Metric Tensor

 Tensor: Generalization of a vector

 Quantity having a number of components, depending on the tensor rank and the dimension of the space  Vector – tensor of rank 1, scalar – tensor of rank 0

 Metric Tensor for any General Coordinate

System

 Rank 2  Elements:  Symmetric:

g (^) jk  u (^) j  u k g (^) jk  gkj

Examples of Metric Tensors

 Cartesian Coordinate System

 Polar Coordinates

  ^  0 , otherwise

1 , if j k g (^) jk

u x   1 , 0 ^ u y  0 , 1 

 

   sin cos

cos sin , xr^ y^ r

r x y u u u

u u u   

 

  

  0 2

1 0 r

g

Matrices

 Definition

 A rectangular array of quantities

 Scalar Multiplication and Matrix

Addition

  m m mn

n

n

a a a

a a a

a a a A ...

: : :

...

...

1 2

21 22 2

11 12 1



   

   21 22

11 12 21 22

(^11 12) , b b B b b a a A a a 

 

       21 21 22 22

11 11 12 12 a b a b A B a b a b



   21 22

11 12 ka ka kA ka ka

Matrix Transpose

 Definition

 Interchanging rows and columns

 Transpose of Matrix Product

  

  

   

  

c

b

a a b c T

T , 3 6

2 5

1 4

4 5 6

1 2 3

AB T  B T A T

Determinant of Matrix

 Definition

 For a square matrix, combining the matrix elements to product a single number

 2  2 matrix

 Determinant of n  n Matrix A (n  2)

^ n  

j

jk jk

j ka

1

det A ( 1 ) det A

11 22 12 21 21 22

(^11 12) a a a a a a

a a  

Parametric Representations

 A three dimensional curve can be described

in terms of the parameter u for a Cartesian

reference frame

 P(u)=(x(u),y(u),z(u))  Example for this is a circle with centre at the coordinate origin  X(u)=rcos(2piu)  Y(u)=rsin(2piu)  Z(u)=

Fitting Curves

 A standard method is least-squares algorithm  Fits non-linear or linear functions to data  First a function f(xk) is selected which may be straight-line, polynomial or any curved shape  We then find the error between the data values y(k) and the value computed using f(x)  E=∑[y(k)-f(xk)]^2  Aim is to minimize the error E  If f(x)=a 0 +a 1 x then a 0 and a 1 is chosen to minimize the Error E  E will be minimum when the partial derivative with respect to a 0 is zero and with respect to a 1 is zero