计算机图形学(3)

1. 缩放矩阵是对角矩阵,对角线上每个值表示缩放的比例

2. 

2D Shear

Shear transformations produce a shape distortion.

(old coordinates are (x, y) and the new coordinates are (x', y'))

X-Direction Shear is given by the following matrix:

(1     0    0)
(SHx   1    0) 
(0     0    1)
  
                        ( 1    0    0)
(x' y' 1) = ( x y 1)  * (SHx   1    0)(这里使用齐次坐标系表示的,所以多了一个1)
                        ( 0    0    1) 
                
Which produces a shearing along x that is proportional to y:

 x' = x + SHx * y
 y' = y
 1 = 1

Y-Direction Shear is given by the following matrix:

(1    SHy   0)     
(0     1    0)   
(0     0    1)


                        (1  SHy   0)
(x' y' 1) = ( x y 1)  * (0   1    0)
                        (0   0    1) 
     
Which produces a shearing along y that is proportional to x:

x' = x 
y' = x * SHy + y
1=1

shear的过程中x和y中一定有一个是保持不变的。


3. So if you have a location on the object which is say the center of mass plus some displacement,rotating that is equivalent to rotating the center of mass and then rotating the displacement.

旋转是线性操作,在2D中是可以交换的,但在3D中不可以。

旋转的矩阵表达可以通过极坐标系进行推理。




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值