FuryCell Posted October 28, 2006 Posted October 28, 2006 Just a quick scrap that calculates the distance between two points. It can be used to calculate the distance between two elements on the screen. Using it is pretty self explanatory. Func _Distance($iX1, $iY1, $iX2, $iY2) Return Sqrt(($iX1 - $iX2) ^ 2 + ($iY1 - $iY2) ^ 2) EndFunc ;==>_Distance HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
the DtTvB Posted October 28, 2006 Posted October 28, 2006 It's a good script. Simple but useful. [right]Please visit: My biggest project, the DtTvB's AutoIt Web ServerOlder Stuff: A Smoother MouseMove :: AutoIt Syntax Highlighter[/right]
FuryCell Posted October 28, 2006 Author Posted October 28, 2006 thanks all for the replies. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Rallert Posted October 29, 2006 Posted October 29, 2006 Hah, my math teacher(I'm only 15) told me about that this week. And now there is an au3 for it!
dnsi Posted October 29, 2006 Posted October 29, 2006 This is the easest idea ever i learned it in grade 3. My Programs:Flip-Flop File Encryption SysyemMULTIPLAYER-SOCKETSERVERHide An Archive In A Picture
cppman Posted October 29, 2006 Posted October 29, 2006 (edited) dnsi said: This is the easest idea ever i learned it in grade 3. you learned about roots and powers in 3rd grade?? @SolidSnake.. Cool, now you should do one for 3D. lol Func _Distance3($Vertex1, $Vertex2) ;Do your stuff here $x1 = $Vertex1[0] $y1 = $Vertex1[1] $z1 = $Vertex1[2] $x2 = $Vertex2[0] $y2 = $Vertex2[1] $z2 = $Vertex2[2] EndFunc Edited November 4, 2006 by CHRIS95219 Miva OS Project
Kickassjoe Posted October 29, 2006 Posted October 29, 2006 Quote you learned about square roots and powers in 3rd grade??What are those? What goes around comes around... Payback's a bitch.
Wus Posted October 29, 2006 Posted October 29, 2006 Its the same in 3d as in 2d..... just one more sqare under the root
jvanegmond Posted October 29, 2006 Posted October 29, 2006 Wus said: Its the same in 3d as in 2d..... just one more sqare under the rootDon't get me started on distance calculation, Z-mapping or anything else 3D related. github.com/jvanegmond
dnsi Posted November 4, 2006 Posted November 4, 2006 Whats Up with 3D victors anyways??? I dont even use them... But the script would be helpful. My Programs:Flip-Flop File Encryption SysyemMULTIPLAYER-SOCKETSERVERHide An Archive In A Picture
dnsi Posted November 4, 2006 Posted November 4, 2006 And You could include Sine And Cosine to capculate the next cord im only in grade 6. My Programs:Flip-Flop File Encryption SysyemMULTIPLAYER-SOCKETSERVERHide An Archive In A Picture
Paulie Posted November 4, 2006 Posted November 4, 2006 dnsi said: im only in grade 6.Oh, So thats why you act so childish?
cppman Posted November 4, 2006 Posted November 4, 2006 (edited) dnsi said: Whats Up with 3D victors anyways???I dont even use them... But the script would be helpful. lmao.. who's victor? Edited November 4, 2006 by CHRIS95219 Miva OS Project
dnsi Posted November 5, 2006 Posted November 5, 2006 A Victor is a point in a rendered 3D world. My Programs:Flip-Flop File Encryption SysyemMULTIPLAYER-SOCKETSERVERHide An Archive In A Picture
Richard Robertson Posted November 5, 2006 Posted November 5, 2006 The word is vector. A vector is also a corner in a geometric shape. Vectors consist of the standard X and Y, but also a Z coordinate as well. I wonder what good 3D calculations are in AutoIt though. Trying to calculate the distance between two 3D points is a little more complicated.
FuryCell Posted November 5, 2006 Author Posted November 5, 2006 (edited) dnsi said: A Victor is a point in a rendered 3D world. It's called a vector , not victor. Edit: too slow Edited November 5, 2006 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
dnsi Posted November 19, 2006 Posted November 19, 2006 MisSpelling... My Programs:Flip-Flop File Encryption SysyemMULTIPLAYER-SOCKETSERVERHide An Archive In A Picture
jvanegmond Posted November 20, 2006 Posted November 20, 2006 Icekirby1 said: The word is vector. A vector is also a corner in a geometric shape.Vectors consist of the standard X and Y, but also a Z coordinate as well. I wonder what good 3D calculations are in AutoIt though.Trying to calculate the distance between two 3D points is a little more complicated.Check out my 3D library. Link. I'm willing to create a _Distance3D function if anyone has a need for it. github.com/jvanegmond
/dev/null Posted November 20, 2006 Posted November 20, 2006 Manadar said: Check out my 3D library. Link. I'm willing to create a _Distance3D function if anyone has a need for it.as Wus already said, just add the 3rd dimension to the function and your done.... __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now