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 - The Fusion of Science and Community**

Dismiss Notice

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?

Loading...

Similar Threads - define vector case | Date |
---|---|

I How this defines a linear transformation | Apr 25, 2016 |

Equality of two elements of a hilbert space defined? | Aug 1, 2015 |

Different ways to define vector multiplication? | Aug 28, 2013 |

Inner Product Space of two orthogonal Vectors is 0 , Is this defined as it is ? | Dec 27, 2012 |

What was the motivation to define what a vector space is? | Jul 26, 2011 |

**Physics Forums - The Fusion of Science and Community**