FuryCell Posted October 28, 2006 Share 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. Link to comment Share on other sites More sharing options...
the DtTvB Posted October 28, 2006 Share 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] Link to comment Share on other sites More sharing options...
Valuater Posted October 28, 2006 Share Posted October 28, 2006 Nice!! 8) Link to comment Share on other sites More sharing options...
FuryCell Posted October 28, 2006 Author Share 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. Link to comment Share on other sites More sharing options...
Rallert Posted October 29, 2006 Share 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! Link to comment Share on other sites More sharing options...
dnsi Posted October 29, 2006 Share 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 Link to comment Share on other sites More sharing options...
cppman Posted October 29, 2006 Share Posted October 29, 2006 (edited) 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 Link to comment Share on other sites More sharing options...
Kickassjoe Posted October 29, 2006 Share Posted October 29, 2006 you learned about square roots and powers in 3rd grade??What are those? What goes around comes around... Payback's a bitch. Link to comment Share on other sites More sharing options...
Wus Posted October 29, 2006 Share Posted October 29, 2006 Its the same in 3d as in 2d..... just one more sqare under the root Link to comment Share on other sites More sharing options...
jvanegmond Posted October 29, 2006 Share Posted October 29, 2006 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 Link to comment Share on other sites More sharing options...
dnsi Posted November 4, 2006 Share 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 Link to comment Share on other sites More sharing options...
dnsi Posted November 4, 2006 Share 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 Link to comment Share on other sites More sharing options...
Paulie Posted November 4, 2006 Share Posted November 4, 2006 im only in grade 6.Oh, So thats why you act so childish? Link to comment Share on other sites More sharing options...
cppman Posted November 4, 2006 Share Posted November 4, 2006 (edited) 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 Link to comment Share on other sites More sharing options...
dnsi Posted November 5, 2006 Share 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 Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 5, 2006 Share 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. Link to comment Share on other sites More sharing options...
FuryCell Posted November 5, 2006 Author Share Posted November 5, 2006 (edited) 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. Link to comment Share on other sites More sharing options...
dnsi Posted November 19, 2006 Share Posted November 19, 2006 MisSpelling... My Programs:Flip-Flop File Encryption SysyemMULTIPLAYER-SOCKETSERVERHide An Archive In A Picture Link to comment Share on other sites More sharing options...
jvanegmond Posted November 20, 2006 Share Posted November 20, 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.Check out my 3D library. Link. I'm willing to create a _Distance3D function if anyone has a need for it. github.com/jvanegmond Link to comment Share on other sites More sharing options...
/dev/null Posted November 20, 2006 Share Posted November 20, 2006 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 * Link to comment Share on other sites More sharing options...
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