...including cases such as between 45 and 225 degrees and between 225 and 45 degrees going the other way.(adsbygoogle = window.adsbygoogle || []).push({});

Which, for programmatical reasons, must all be handled in the same equation.

It's either that, or I re-work my roguelikes' LOS aglorithm to handle everything in 90 degree increments.

Save me a bunch of re-writing?

Thanks.

**Physics Forums | Science Articles, Homework Help, Discussion**

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!

# Needed: A mathematical equation that can tell whether angle C is between A and B,

**Physics Forums | Science Articles, Homework Help, Discussion**