Sign in to follow this  
Followers 0
Cabbie8675

Any way to get degrees of a line drawn after calling _WinAPI_DrawLine

5 posts in this topic

I got a _WinAPI_DrawLine that i draw in bottom right corner of screen and would like to redraw the line in center of screen at same degree of angle, is there any easy way to find the angle of the first line i draw.

Was hoping for an easier way than having to do a bunch of math to recalcuate scale and redraw new line

Share this post


Link to post
Share on other sites



actualy i do think math is easyest way (probably only way) youl get it done if your looking to scale its lenght


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

being a real pain in the butt to just do a mirror overlay, I'm thinking easiest way (now) is to convert original line into 4 axis grid with 0,0 at center, would be so much easier if _WinAPI_GetObject returned a degree but its vague in help file and cant find an example.

Share this post


Link to post
Share on other sites

asking of not using math for programing language is like asking not to use letters for typing

so i'm gonna redirect you to some math precalculus for angle circled dot position

part with

_Move($Distance, $rotation)

is interesting for you


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

Have a look here:

Might be helpful.

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0