Urgent help in finding out a point on a line

Hi,

This is my scenario.

I have a line and I know that it is originating at x1,y1.

I also know the angle of the line with respect to the base.

Given a distance from the x1,y1 I need to know the other points x2,y2

How do I do this.

can anyone help me with providing a formula say

x2= so and so

and

y2 = so and so

I've to use this in a computer language and so would be glad if I could get a formula such as the above.

Please guys help needed.

Thanks in advance.