Hi all,

 

 

I know this is not a typical question for a user list but I least I can try
to find help here;-)

 

I have given a vehicle (it's a point) and the movementpath of the vehicle
(it's a "directed" linestring) ! I computed the degree of the movement!

For example moving from 

(0,0) to (0.5) the movement direction is/has 0 degree 

(0,0) to (5.0) the movement direction is/has 90 degree 

(0,0) to (0.-5) the movement direction is/has 180 degree 

(0,0) to (-5.0) the movement direction is/has 270 degree 

 

but for visualization each vehicle occupies a rectangle and I want to
compute the position of the rectangle "!beneath!" the street! 

So  I have given a point(vehicles point on the streetnetwork) the
movementdegree and the distance(width of the rectangle/2)! 

And I need to compute the point!

 

(situation is shown in attachment)

 

My idea is for computing the point (x,y) is:

x =  sin(degree)* distance + x(value of point on street)

y = cos(degree)*distance+y(value of point on street)

 

What do you say? Is the formular correct?

 

Cheers,

Martin

 

<<attachment: Unbenannt.gif>>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to