# Compare two directions

**URL:** https://forum.kirupa.com/t/compare-two-directions/331328
**Category:** flash
**Created:** [July 8, 2013, 2:56pm UTC](https://forum.kirupa.com/t/compare-two-directions/331328 "2013-07-08T14:56:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Blatz](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Michael\_Blatz](https://forum.kirupa.com/u/Michael_Blatz)
#### Post date: [July 8, 2013, 2:56pm UTC](https://forum.kirupa.com/t/compare-two-directions/331328/1 "2013-07-08T14:56:30Z")

</div>

Hi everyone!

I’m programming a little game (not a simulation so it’s not an exact AI what I need) where the player has to control ships. This game is not real time but round based.  
The tricky part is that there are sea fights where I want to move the ships on curves which represent how the ship will move in this round. Now here comes my problem:

I want to initialize a wind direction (here starts my problem) and compare this with my curve. The curve will get an influence of the wind direction. So I don’t think that I have much problems with the comparison but actually I have a problem declaring and initializing a specific direction :stare:

In addition: My curve is a collection of 100 Points

I hope you guys may help!

Thanks a lot!

Michael
