Java Geometry Algorithm absoluteBearing(Point2D.Double sourceLocation, Point2D.Double target)

Here you can find the source of absoluteBearing(Point2D.Double sourceLocation, Point2D.Double target)

Description

absolute Bearing

License

Open Source License

Declaration

public static double absoluteBearing(Point2D.Double sourceLocation,
            Point2D.Double target) 

Method Source Code

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

public class Main {
    public static double absoluteBearing(Point2D.Double sourceLocation,
            Point2D.Double target) {
        return Math.atan2(target.x - sourceLocation.x, target.y
                - sourceLocation.y);//w  w  w .  j  a  va 2  s .c o m
    }
}

Related

  1. absoluteBearing(Point2D source, Point2D target)
  2. applyCoG(Point2D.Double[] points, Point2D.Double cog)
  3. applyDynamism(final Point[] spline, final int msForMove, final int msPerMove)
  4. applyMidPointApprox(CubicCurve2D cubic, QuadCurve2D quad)
  5. arcThroughThreePoints(float x1, float y1, float x2, float y2, float x3, float y3, boolean clockwise)