mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 23:15:46 -05:00
43 lines
1013 B
Markdown
43 lines
1013 B
Markdown
---
|
|
title: "03-2d-transforms"
|
|
tags:
|
|
- lecture
|
|
- cosc342
|
|
---
|
|
|
|
look into how colours work together
|
|
|
|
Points lines
|
|
- point is 2d location $(u,v)$
|
|
- two points define a line
|
|
- a polyline with k segments is a sequence of k+1 points
|
|
- a polygon is a polyline where the beginning and ened are the same, we often omit the duplicate point
|
|
- points are vectors
|
|
|
|
> [!INFO] polygon and polylines will be specifies in the code
|
|
|
|
> [!INFO] $[u v]^T$ high T indicates vector
|
|
|
|
coordingate systems
|
|
- mathematical
|
|
- image based
|
|
- matrix based
|
|
- 
|
|
|
|
> [!INFO] make sure to check you are using the right coordinate system
|
|
|
|
transformations
|
|
- translation
|
|
> [!INFO] value of change (delta) for each coordinate. for a shape, apply the transformation to each point
|
|
- scaling
|
|
- rotation
|
|
- rotate by an abgle about the origin
|
|
- rotation from U towards V, not anti/clockwise
|
|
- $[u',v'] = [cos(0) - sin(0), sin(0) cos(0)][u,v]$
|
|
- inverse
|
|
- combinations
|
|
|
|
|
|
homogenous coordinates
|
|
homogenous transforms
|