[cos(θ)−sin(θ)sin(θ)cos(θ)]
$$ \begin{bmatrix} \cos(\theta) & -\sin(\theta) \\ \sin(\theta) & \cos(\theta) \end{bmatrix} $$
(x2,y2)=(x1cos(θ)−y1sin(θ),x1sin(θ)+y1cos(θ))$$ (x_2, y_2) = \left(x_1 \cos(\theta) - y_1 \sin(\theta), x_1 \sin(\theta) + y_1 \cos(\theta)\right) $$
det=(x1cos(θ)−y1sin(θ))⋅(x1sin(θ)+y1cos(θ))$$ \text{det} = (x_1 \cos(\theta) - y_1 \sin(\theta)) \cdot (x_1 \sin(\theta) + y_1 \cos(\theta)) $$
det=(x12+y12)sin(θ)$$ \text{det} = (x_1^2 + y_1^2) \sin(\theta) $$
반시계방향
det>0(반시계방향, CCW)$$ \text{det} > 0 \quad \text{(반시계방향, CCW)} $$
시계방향
det<0(시계방향, CW)제가 수식적는 방법을 잘 몰라서 우선 이렇게 나열해뒀는데
(x1, y1) -> (x2, y2)로 가는 방향이 CW, CCW 둘 중 무엇인지를 생각할 때
먼저 (x2, y2)를 x1, y1을 이용해서 바꿔서 Det를 구해보면 결국 sin(theta) 하나만 남게되고
이게 부호를 결정합니다.
그래서 반시계면 양수, 시계면 음수가 됩니다.
$$ \text{det} < 0 \quad \text{(시계방향, CW)} $$
숫ㅅ

taraki3639 1년 전
det값을 계산하여, 부호를 따진다는 건 알겠는데...
왜 det가 0보다 크면 반시계여야만 하는지... 이것이 머리속으로 전혀 와닿지 않습니다.
그냥 정의인가요?