Results 1 to 5 of 5

Thread: Line length

  1. #1

    Thread Starter
    Lively Member moja's Avatar
    Join Date
    May 2002
    Posts
    74

    Line length

    How to Get ( during runtime) the lenght of a line drwan between two points

    A (x,y) and B (x1,y1).

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    line control?
    if you've taken pre pre pre algebra you should be able to find the length of a line by having the coordinates of its end points
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674
    deja vu
    "I have not failed. I've just found 10,000 ways that won't work."
    'Thomas Edison'

    "If we knew what it was we were doing it wouldn't be called research, would it?"
    'Albert Einstein'

    VB6

  4. #4
    Stiletto
    Guest
    VB Code:
    1. dim iLen as Integer
    2. iLen = Abs(((Y1-Y2)^2)+((X1-X2)^2)) 'formula, posted b4 by SLH
    3. MsgBox iLen

  5. #5
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674
    VB Code:
    1. dim iLen as Integer
    2. iLen = Abs(((Y1-Y2)^2)+((X1-X2)^2)) [B]^ 0.5[/B]  'formula, posted b4 by SLH
    3. MsgBox iLen
    "I have not failed. I've just found 10,000 ways that won't work."
    'Thomas Edison'

    "If we knew what it was we were doing it wouldn't be called research, would it?"
    'Albert Einstein'

    VB6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width