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

1. ## 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. ## 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. ## Re: Unit Vector

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