Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7667161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:01:51+00:00 2026-05-31T15:01:51+00:00

Given the following: – starting point (coordinate) – angle (degree) – velocity .. I’d

  • 0

Given the following:
– starting point (coordinate)
– angle (degree)
– velocity

.. I’d like to calculate the given trajectory.
For example for the image below w/ velocity 1: (10,10) (9,9) (8,8) (7,7) ..

It should be able to move in all directions.
How can I calculate it?

example

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:01:52+00:00Added an answer on May 31, 2026 at 3:01 pm

    If you have an angle and a speed (scalar), the components in the x- and y-directions are easy:

    vx = (speed)*cos(angle)
    
    vy = (speed)*sin(angle)
    

    Angle needs to be in radians for most languages, not degrees. Make sure you convert it.

    So if you have a point (ux, uy) at time t1, then the position at time t2 is:

    ux(t2) = ux(t1) + vx*(t2-t1)
    
    uy(t2) = uy(t1) + vy*(t2-t1)
    

    Let’s see what it looks like in Java:

    /**
     * Method for updating a position giving speed, angle, and time step
     * @param original coordinates in x, y plane
     * @param speed magnitude; units have to be consistent with coordinates and time
     * @param angle in radians
     * @param dtime increment in time 
     * @return new coordinate in x, y plane
     */
    public Point2D.Double updatePosition(Point2D.Double original, double speed, double angle, double dtime) {
        Point2D.Double updated = new Point2D.Double();    
        updated.x = original.x + speed*Math.cos(angle)*dtime;
        updated.y = original.y + speed*Math.sin(angle)*dtime;    
        return updated;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given the following example, why do I have to explicitly use the statement b->A::DoSomething()
I'm just wondering if Specification pattern is pointless, given following example: Say you want
Given the following code <div class=container> <p>Some Text</p> <p><img src=image.jpg><p> <p>More Text</p> </div> CSS
Given the following tables I'd like to return the localised text for given culture
Given the following example SWF: Sample Notice how with the words enthusiast at the
Given following array: var arr = [undefined, undefined, 2, 5, undefined, undefined]; I'd like
Given following Ruby statements: (Read input and store each word in array removing spaces
// given following array: $data = array( 0=>array( data=>object1, col=>array( 0=>array( data=>object2, col=>array( 0=>array(
Given the following XML: <current> <login_name>jd</login_name> </current> <people> <person> <first>John</first> <last>Doe</last> <login_name>jd</login_name> </preson> <person>
Given the following: List<List<Option>> optionLists; what would be a quick way to determine the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.