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

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

Description

project

License

Open Source License

Declaration

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

Method Source Code

//package com.java2s;
import java.awt.geom.Point2D;

public class Main {
    public static Point2D.Double project(Point2D.Double sourceLocation,
            double angle, double length) {
        return project(sourceLocation, Math.sin(angle), Math.cos(angle),
                length);//  ww w.  j  av  a 2  s  .c  o m
    }

    public static Point2D.Double project(Point2D.Double sourceLocation,
            double sinAngle, double cosAngle, double length) {
        return new Point2D.Double(sourceLocation.x + sinAngle * length,
                sourceLocation.y + cosAngle * length);
    }
}

Related

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