Link to home
Start Free TrialLog in
Avatar of ws1999
ws1999

asked on

about line

one thing i confused is how can i judge a point is in the line i drawed,

like this procedure :moveto (x1,y1),lineto(x2,y2);

Regards

ASKER CERTIFIED SOLUTION
Avatar of ginsonic
ginsonic
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ws1999
ws1999

ASKER

hello qinsonic, good example. another one is
if i want to know how many points in the line, how would i do it. it should be calculate from x coordinate or y coordinate.

Thanks
Avatar of ws1999

ASKER

hello qinsonic, good example. another one is
if i want to know how many points in the line, how would i do it. it should be calculate from x coordinate or y coordinate.

Thanks
I don't understand the question. Can you be more specified ?

Regards,
Nick

P.S.
I think that is another new question :)
Avatar of ws1999

ASKER

because i want to know how many pixels in the line,
if the two end point of the line is for example (100,100),(200,300).

if i change from x coordinate ,like 100,101,102....200 there may be points accordingly in the line, if i change from y coordinate there should be 100,101,102,...200,..300 ,so the number of points is different. i mean that.

How I know this is a trigonometry problem .
 
  |            
  |  c         |   c
a |___      a  |_______
   b              b

 C2=a2+b2 - alike (C*C)=(a*a)+(b*b)
 Sorry for this , but letter formating don't let me type right.


|
|
|___
Has this helped you or is more needed?  If you've been helped, please finalize this.
EE Moderator
Just B?
ws1999 read your comment 'hello qinsonic, good example'.
I can correct this for you, please advise.  It is requested that ANY TIME a grade less than an "A" is given that you take a moment to add comments to let the Expert as well a future purchasers of the question from our PAQ know.  If you've found additional information elsewhere that adds value to this thread, that is excellent.  In looking through your history I find more "B" grades than any others, do you truly feel that this site does not provide you excellent help?  No comments found in any of them either as to what would have been needed to achieve excellence.

Listening further.

EE Moderator
The URL is used for a sample writed by me exactly for this question. And work perfect . I can upload again to prove .

Not the points are the problem . A 'B' grade affect my expert history.
Avatar of ws1999

ASKER

for me i don't like the word'excellent', and i don't know the rule for experts-exchange either, i have thought that they were almost same.

I know i have got a bad name in experts-exchange, but that is not my real thought, i am not so bad man as someone thought me. experts-exchange always my first help in programming, if  i have done something because of carelessness, i ask for your forgivenss.

ws1999
Hi, this explains more about this site and the processes and recommendations:

https://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp
https://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp

As ginsonic mentioned above and is evident to me from years at this excellent site, grades are important.  Experts (all) here take great pride in delivering "excellent" assistance and solutions.  If you feel that has not been achieve and great less than an "A", it helps all to understand why by you adding comments if you found a better solution.  This also helps others who access the question from our PAQ (Previously Asked Question) database.  Although the points you offer for the question remain the same, the actualy points granted to the experts who help you are directly impacted by the grade you assign.  This question was posted at 30 points (easy ones typically begin at 50).  You paid 30 points, but the expert points given change by grade.  For example:
30 points for a  C = 60 expert points
30 points for a  B = 90 expert points
30 points for an A = 120 expert points

We certainly don't think that you are bad in terms of your decisions, but rather wanted to explain the process a bit more fully so that it all makes sense to you and helps you achieve your goals here and award the experts for the level of help they give you.  

I have changed this form a B to an A.  Please feel free to comment if more is needed to clarify this further.  We always want people to give the grade which matches the level or quality of help they perceive to have gotten, just ask (as said above) if it is less than an A, you tell us why.  Many experts would rather not have any points than to receive what they determine to be poor grades.  

Thanks for your understanding and for asking me to explain this further.

Moondancer
Community Support Moderator