Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Kombination von Rotation und Translation > Hast Du es wirklich verstanden?

Hast Du es wirklich verstanden?

Mit den folgenden Beispielen will ich Dich nicht in die Irre führen, sondern sichergehen, dass Du verstanden hast, was es mit Rotation und Translation/Verschiebung auf sich hat. Schau Dir noch einmal die folgende Grafik an.

Verschiebung und Rotation

Abbildung 19.11 Verschiebung und Rotation

Im ersten Schritt wurde eine Translation und im zweiten eine Rotation vorgenommen.

Frage: Wenn wir jetzt im dritten Schritt eine erneute Translation nach rechts vornähmen, entlang welcher Linie würde das rote Rechteck verschoben werden?

Möglichkeit 1: ???

Möglichkeit 2: ???

Doch zunächst der entsprechende Code:

void setup()
{
  size(600, 450); smooth();
  noFill(); strokeWeight(2);
}

void draw()
{
  background(0);
  stroke(255, 0, 0);
  

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial