View Single Post
Old 01-21-08, 11:41 AM   #9
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,453
Downloads: 46
Uploads: 4
Default

Quote:
Originally Posted by Sigurd
Ok, I just did a little work, and I think I managed to come up with something. It does involve Sines and inverse sines, so grab a calculator. I dont have the ability to check to see if this works, but here it goes:

Let:
l be the length of the target ship
d be the range to the ship
S be the spread angle
a be AoB

Then:
S = Sin ^-1 ((sin d * l)/d)

Sin^-1 is the inverse sin for those who arent aware. Should this formula work, a table could be easily generated. The only real requirement for this is that both 'l' and 'd' must be the same unit (i.e. meters).
I don't think we need such a complicated formula. In fact preparing a sheet containing as much as 4 different variables would be too much. The chart itself would have to be really huge.

Instead we could prepare just two separate sheets, each of a tolerable seize, and also easier to use I think:
1. for finding relative length of the ship (variables: real length, AOB),
2. for calculating desired spread angle (variables: distance, spread angle).

Formulas for both the tables are:
L - length
S - distance,
A - spread angle,
AOB - AOB
The exact formulas would then be:
1. for finding relative ship length:
Code:
relative ship length = sin(AOB) L
2. for finding offset of torpedoes after a certain distance with a certain spread angle:
Code:
offset = 2 tg(A) S
These two formulas can be easily used in OpenOffice's Calc. Tangent function is: "=tan()" and sinus function is "=sin()".
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote