Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function translasi(titik_lama, T) {
- var x_baru = titik_lama.x + T.x;
- var y_baru = titik_lama.y + T.y;
- return {x:x_baru, y:y_baru};
- }
- function penskalaan(titik_lama, S) {
- var x_baru = titik_lama.x * S.x;
- var y_baru = titik_lama.y * S.y;
- return {x:x_baru, y:y_baru};
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement