You are currently viewing Linear Algebra – Drawing with Vectors – 3d and 2d – Useful code

Linear Algebra – Drawing with Vectors – 3d and 2d – Useful code

[ad_1]

Plotting 2d and 3d vectors into a 3d space can be actually fun.

Using mainly the code from Math for Programmers, I am presenting in this video an example of plotting 2d into 3d and back, using identity matrix and showing what tiny changes in it would result in the plotted area.

E.g. The following change of the identity matrix (see the added 3 and 2) would return the following plots:

Red shape is moved +3 on x and +2 on y.

Red shape is moved +3 on x and +2 on y. But on 3d.

As you see from the caption of the plots, just by multiplying with the correct identity matrix, we can achieve a lot – moving up and down, right and left the shape in 3d. The whole trick is explained in the video below.

The code is in GitHub here:

I hope you will enjoy the video!

https://www.youtube.com/watch?v=S2qEOu0PTT4

Discount codes (use whatever works best) for Manning – [blvitaca22, watchcui40].

[ad_2]
Source link

Gadget Explorer Pro

Gadget Explorer Pro is an expert writer specializing in comprehensive reviews, insightful articles, and detailed comparisons of consumer electronics. With a passion for technology and years of experience, they offer unbiased analysis of the latest gadgets, from cameras to smart home devices. Known for making complex tech understandable, Gadget Explorer Pro helps readers make informed decisions. Follow them for expert advice and the latest trends in the world of technology.

Leave a Reply