Hi Everyone:

This translation is from the sixth chapter in the DesignScript Language Manual, which can be found at DSLM and is entitled; *Vector Math*. The first pass at translating was made on the Autodesk DesignScript Community Forum is linked as Vector Math…Code to Node. Below is what the **DS S**tudio canvas looked like at that initial posting.

Chapter-6-Vector Math

As mentioned, “*Vector objects are not represented in the DesignScript window, as they are not geometric objects*“. However they can represented by graphics similar to the way they are shown in the DSLM.

Vector.op Addition

Vector.op_Subtraction

Vector Cross

Vector Mutiplication

(c) dot product-represents the angle between two vectors

They are also represented the the graph node window. Below is the further developed canvas.

Vector Math- from the DSLM, Chapter 6

For clarity the graph nodes are grouped according to their function. Translating the canvas back to code is shown below.

Chapter-6-Vector Math

Node to Code

And as promised the files can be download from the** Drop-Box** links below.

long-vector_d-tutorial

Chapter-6-Vector_Math

Chapter-6-Vector_Math-b

Thanks for looking.

T!M

### Like this:

Like Loading...