Results 1 to 5 of 5

Thread: Line Plotting and angles

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    88

    Question Line Plotting and angles

    I am working with line plotting in a form.
    I need to find an angle between two lines AB,BC joined at B.
    AB and BC lengths are not same.
    I know (x,y) values of A,B and C.
    How to find angle at B?

    and also
    I have Trignometric "TanA" value.
    How to find angle 'A' ?

    in VB code point, can some body help me?

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    sqr((Ax-Bx)^2 + (Ay-By)^2) = length AB
    sqr((Cx-Bx)^2 + (Cy-By)^2) = length BC

    TanA - isn't that the Arc Tan of an angle ?? Say B?
    Or do you mean Tan(A) = degrees/radians?

    I'm trying to remember back around ten years

    Post up again later


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    The sandpaper library will have a derived math class in it. It will contain functions for all the derived math equations detailed in MSDN.

    It has already been coded. Alpha Launch date: 01 Dec 04.
    I don't live here any more.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    88

    Question shifting line in coordinate system

    I have a line with known x,y values. that is x1,y1 and x2,y2.
    I need to shift that line with same slope and lenght to new point to x3,y3.
    that is new line coordinates shall be x3,y3 and x4,y4.
    how do I do it in VB point of view. any help pl.

    Very Urgent.

  5. #5
    Member
    Join Date
    Jun 2003
    Posts
    39
    x3 - x1 = diffx
    y3 - y1 = diffy

    x4 = x2 + diffx
    y4 = y2 + diffy

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