Professional Documents
Culture Documents
Mathematics for
Computer Graphics
Coordinate-Reference Frames
2D Cartesian Reference Frames / Polar Coordinates
3D Cartesian Reference Frames / Curvilinear Coordinates
Points and Vectors
Vector Addition and Scalar Multiplication
Scalar Product / Vector Product
Basis Vectors and the Metric Tensor
Orthonormal Basis
Metric Tensor
Matrices
Scalar Multiplication and Matrix Addition
Matrix Multiplication / Transpose
Determinant of a Matrix / Matrix Inverse
y x
y
x
r x r cos , y r sin
y
r x2 y2 , tan 1
x
s r
Circle
2D Cartesian : 비균등 분포
Polar Coordinate
x r cos ,
y x2 y2 r 2 y
y r sin
d
d
x x
dx dx
오른손 좌표계
대부분의 Graphics Packa
ge 에서 표준
왼손 좌표계
관찰자로부터 얼마만큼
떨어져 있는지 나타내기에
편리함
Video Monitor 의 좌표계
x3 = const3
x1 = const1
z z axis z axis
P(,,z) P(r,, )
r
y axis y axis
x axis x axis
y2 P2 V Vx2 V y2
V
y1 Vy
P1 tan
1
Vx
x1 x2
3 차원에서의 Vector
z
V Vx2 V y2 Vz2
V
V Vy V
cos x , cos , cos z
|V | |V | |V | y
cos 2 cos 2 cos 2 1 x
Definition
V2
V1 V2 | V1 || V2 | cos , 0
V1
|V2|cos Dot Product, Inner Product 라고도 함
Definition
V1 V2 V1 V2 u | V1 || V2 | sin , 0
V2
u Cross Product, Outer Product 라고도 함
V1
For Cartesian Reference Frame
V1 V2 (V1 yV2 z V1zV2 y ,V1zV2 x V1xV2 z ,V1xV2 y V1 yV2 x )
Properties
AntiCommutative
V1 V2 (V2 V1 )
Not Associative
V1 (V2 V3 ) (V1 V2 ) V3
Distributive
V1 (V2 V3 ) (V1 V2 ) (V1 V3 )
cgvr.korea.ac.kr Graphics Lab @ Korea University
Examples
CGVR
V2
(x1,y1)
(x0,y0) V1
Example
Orthonormal basis for 2D Cartesian reference frame
u x 1, 0 u y 0, 1
Orthonormal basis for 3D Cartesian reference frame
u x 1, 0, 0 u y 0, 1, 0 u z 0, 0, 1
Tensor
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
Definition
A rectangular array of quantities
a11 a12 ... a1n
a a22 ... a2 n
A 21
: : :
am1 am 2 ... amn
Scalar Multiplication and Matrix Addition
a11 b11 a12 b12
A B
a11
A
a12 b11 b12
, B a21 b21 a22 b22
a21 a22 b21 b22 ka11 ka12
kA
ka21 ka22
cgvr.korea.ac.kr Graphics Lab @ Korea University
Matrix Multiplication
CGVR
Definition
j-th column
C AB i-th row
m
n l × = l (i,j)
cij aik bkj
m n
k 1
n
Properties
Not Commutative AB BA
Associative ( AB )C A( BC )
Distributive A( B C ) AB BC
Scalar Multiplication ( kA) B A( kB ) k ( AB )
Definition
Interchanging rows and columns
T 1 4 a
1 2 3 2 5,
4 5 6 a b cT b
3 6 c
Transpose of Matrix Product
AB T BT A T
Definition
For a square matrix, combining the matrix
elements to product a single number
2 2 matrix
a11 a12
a11a22 a12 a21
a21 a22
Determinant of nn Matrix A (n 2)
n
det A (1) j k a jk det A jk
j 1
Definition 1 1
AA I A A I
Non-singular matrix
If and only if the determinant of the matrix is non-zero
2 2 matrix
a b 1 1 d b
A A
c d
ad bc c a
Properties
( A1 )1 A ( AB )1 B 1 A1 ( AT )1 ( A1 )T