Thread
:
More of a math question...
View Single Post
#
6
05-01-2007, 12:05 AM
Gambet
Registered User
Join Date: Oct 2003
Posts: 2,712
Quote:
Originally Posted by
zokemon
Hehe.
I just have an OCD think about repeating the same math formula over and over again :P
Then do something like....
PHP Code:
temp
.var =
abs
(
dir2
-
dir1
);
dist
= (
temp
.var >
8
?
16
-
temp
.var :
temp
.var);
Gambet
View Public Profile
View GraalOnline Profile
Find all posts by Gambet