How do I rotate a 2D point?

  Рет қаралды 467

Edgar Programmator

Edgar Programmator

11 ай бұрын

Rotating 2D points can be a difficult concept to understand, but it's essential for a variety of tasks in computer graphics and other fields. In this video, we'll use visuals to help you understand the process of rotating 2D points. We'll also provide some examples to help you solidify your understanding.
Rotating a point around the origin.
P = (x, y)
x' = x * cos θ - y * sin θ
y' = x * sin θ + y * cos θ
P' = (x', y') # rotated point
Rotating a point around another point.
P = (x1,y1) C = (x2,y2)
x' = (x1-x2) * cos θ - (y1-y2) * sin θ + x2
y' = (x1-x2) * sin θ + (y1-y2) * cos θ + y2
P' = (x', y') # rotated point

Пікірлер: 2
@EgorChebotarev
@EgorChebotarev 10 ай бұрын
nice explanation
@starplatinum3305
@starplatinum3305 10 күн бұрын
Please do a 3d version maybe ? Or a quaternion video ?
How do I find the distance from a point to a line?
2:28
Edgar Programmator
Рет қаралды 183
Convolution
6:19
Edgar Programmator
Рет қаралды 1 М.
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 58 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 59 МЛН
How many corners does a semi-circle have?
8:33
MindYourDecisions
Рет қаралды 840 М.
Find the Intersection of Two Lines in the Plane: A Step-by-Step Guide
3:25
We Need to Rethink Exercise - The Workout Paradox
12:00
Kurzgesagt – In a Nutshell
Рет қаралды 4,6 МЛН
A Surprisingly Easy Functional Equation 🤯🤯🤯
2:35
Mathemadix
Рет қаралды 7 М.
Actually, Maybe There's Only 1 Game of Tic-Tac-Toe
11:58
Marc Evanstein / music․py
Рет қаралды 1 МЛН
Solve any equation using gradient descent
9:05
Edgar Programmator
Рет қаралды 52 М.
"It's just a Coincidence"
8:28
Digital Genius
Рет қаралды 566 М.
When Geometry Meets Infinity
10:02
Digital Genius
Рет қаралды 431 М.
I coded your DUMBEST Minecraft ideas
15:03
Element X
Рет қаралды 392 М.
3d Graphing in a 2d Calculator (Desmos)
3:05
JohnDoesStuff
Рет қаралды 448 М.
ГОСЗАКУПОЧНЫЙ ПК за 10 тысяч рублей
36:28
Ремонтяш
Рет қаралды 560 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,1 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 340 М.
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 117 М.
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 1,1 МЛН