If I have a vector:(adsbygoogle = window.adsbygoogle || []).push({});

origin = new Vector(x, y)

then, I would like to getNsub vectors, each one of theNsub vector is got by adding origin vector with anew vectorvalue like:

subVector = origin.add(new Vector(m, n));

The result I would like to achieve is showing in the image below:

http://i.stack.imgur.com/ZvH1j.png"

I would like to getNsub vectors which are in thesame horizontal levelandspaced by "L" length,

My questions are:

1. what is the new vector (Vector(m, n))m,nvalues I should use to get all the sub vectors ? (Nis dynamic value)

I end up with something like:

for(var i=0; i<N; i++){

//But, how to select the m, n value ??

var subVector = origin.add(new Vector(m, n));

}

2. How the choose the new vector (Vector(m, n))m,nvalue to make sure the distance between two neighboring sub vectors isLas showed in the image ?

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How to define the new vector in my case?

**Physics Forums | Science Articles, Homework Help, Discussion**