# User:TheLarry/Notebook/Larrys Notebook/2009/11/21

Generating Data Main project page
Previous entry      Next entry

## Creating a Trajectory

I have a pretty good way to make a trajectory now. The user can put his trajectory together piece wise. They can add a horizontal line, vertical line, or circle in any order they want. And make each one of those as long as they want. I can add more geometries to create more intricate trajectories like a slanted line, but for right now this can do what i want. This .vi can also calculate the distances between adjacent points as well. It does this through
$\displaystyle{ s=\sqrt{(x_1-x_0)^2+(y_1-y_0)^2} }$
So i have everything i need now to make any trajectory and then make a microtubule of a certain length move along it. I still have to worry about the width of the microtubule, but for right now i'll go with it being a line and get this working. Then i'll add width.

This works decent, but i have a hard time transitioning from the horizontal line to the circle. I think it is the abrupt change that does it. The points around the change from line to circle have a shorter length than all the other points. This might be ok to work with. i can take these points our or since i know the actual answers this can sill be used to show if the tracking software is working alright. So i'll just go ahead with this.