Java Geometry Algorithm project(Point2D sourceLocation, double angle, double length)

Here you can find the source of project(Point2D sourceLocation, double angle, double length)

Description

project

License

Open Source License

Declaration

public static Point2D project(Point2D sourceLocation, double angle, double length) 

Method Source Code


//package com.java2s;
// This code is released under the RoboWiki Public Code Licence (RWPCL), datailed on:

import java.awt.geom.*;

public class Main {
    public static Point2D project(Point2D sourceLocation, double angle, double length) {
        return new Point2D.Double(sourceLocation.getX() + Math.sin(angle) * length,
                sourceLocation.getY() + Math.cos(angle) * length);
    }//from w  ww  . ja va  2s  . com
}

Related

  1. polarToPoint(double angle, double fx, double fy)
  2. positiveAngleBetween3Points(Point2D.Double p1, Point2D.Double p2, Point2D.Double p3)
  3. preciseFrontBumperOffset( Point2D.Double sourceLocation, Point2D.Double botLocation)
  4. preprocess(Point2D pa, Point2D pb, Point2D pc)
  5. prodEscalar(Point2D p1, Point2D p2)
  6. project(Point2D.Double sourceLocation, double angle, double length)
  7. projectionFactor(Point pt, Point start, Point stop)
  8. projectPoint(float x, float y, Line2D ray, float distance)
  9. projectPointOntoLine(Point2D pt, Line2D ln)