Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Unit Vector

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Unit Vector

    i don't really understand unit vector, so i don't know how to calculate this, can anyone please help me to solve it?

    A(10,0), B(5,8.7) find the unit vector v1 n v2, also find a unit vector w, which is perpendicular to v.

    After that find the new coordinate of C(5, 8.7) with the unit vector of AB.

    Thank you


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Unit Vector

    Since you do not specify, is this a math problem, a problem translating the math into java, or both? If it is a math problem, I'd encourage a quick google search as there are hundreds if not thousands of tutorials out there describing how to calculate a unit vector. If a java problem, what code do you have so far, and what specific questions about the code do you have?

  3. #3
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Unit Vector

    Cross Product -- from Wolfram MathWorld
    Unit Vector -- from Wolfram MathWorld

Similar Threads

  1. [SOLVED] 2D Vector
    By nasi in forum Collections and Generics
    Replies: 2
    Last Post: May 6th, 2010, 01:42 AM
  2. String Vector
    By nasi in forum What's Wrong With My Code?
    Replies: 4
    Last Post: April 3rd, 2010, 11:45 PM
  3. Problem about Vector
    By tohid in forum Collections and Generics
    Replies: 1
    Last Post: March 26th, 2010, 01:44 PM
  4. byte[] from vector
    By perlWhite in forum Collections and Generics
    Replies: 1
    Last Post: August 26th, 2009, 05:10 AM
  5. vector
    By sriraj.kundan in forum Java Theory & Questions
    Replies: 8
    Last Post: August 12th, 2009, 10:17 AM