GAMES101-02线性代数复习


A Swift and Brutal Introduction to Linear Algebra

图形学依赖:
Basic mathematics

  • Linear algebra,calculus,statistics
    Basic physics
  • Optics,Mechanics
    Misc
  • Signal processing
  • Numerical analysis数值分析
    And a bit of aesthetics

一、Vector

向量
Magnitude (length) of a vector written as ||a||
Unit vector

  • A vector with magnitude of 1
  • Finding the unit vector of a vector (normalization): a^ = a/||a||
  • -Used to represent directions

相加
组合
//默认向量为列向量,即上图A所示。

点乘

用途:快速得出向量夹角



点乘在图形学作用:
Find angle between two vectors
(e.g. cosine of angle between light source and surface)Finding projection of one vector on another

  • Measure how close two directions are
  • Decompose a vector
  • Determine forward /backward

    判断向量a和向量b基本一致,与向量c基本相反。
    金属高光,镜面反射等

叉乘
叉乘
右手螺旋定则)决定方向
方向
相同向量叉乘得到零向量

作用:

  • Determine left / right
  • Determine inside / outside
    衍生:判断点是否在三角形内部

二、Matrix

ln Graphics, pervasively used to represent

  • transformations- Translation, rotation,shear,scale
    (more details in the next lecture)


矩阵乘法得先能乘才可以。

没有任何交换律


转置特点

单位矩阵

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值