[Computer Graphics] 02. Basic Mathmetics

전민수·2023년 10월 21일
post-thumbnail

Vector

  • 1D: [x]
  • 2D: [x,y]
  • 3D: [x,y,z]
  • 4D: [x,y,z,w]
  • nD: [x,y,z,w,…]

Typical notation

  • column vector
    [123]=[123]T\begin{bmatrix}1\\2\\3\\ \end{bmatrix} = \begin{bmatrix}1&2&3\\ \end{bmatrix}^T
  • row vector
    [123]\begin{bmatrix}1&2&3\\ \end{bmatrix}

Meaning

  • position (in space)
  • Direction (with length)

Dot product

Cross Product

Matrix

m×nm \times n matrix
(123456789)\begin{pmatrix}1&2&3\\4&5&6\\7&8&9\\ \end{pmatrix}

Matrix multiplication

M×NM\times N

Identity Matrix

(100010001)\begin{pmatrix}1&0&0\\0&1&0\\0&0&1\\ \end{pmatrix}
M×I=I×M=MM\times I = I\times M = M

If AB=IAB = I, BB is called the inverse of A,
and B=A1B = A^{-1}

Line, Ray and Linear Interpolation

line : p(t)=p0+t(p1p0)p(t) = p_0 + t(p_1 - p_0 )

if t is in [,][-\infty, \infty],

→ infinite line

if t is in [0,][0, \infty],

→ ray

profile
Learning Mate

0개의 댓글