Java Angle angleInRadians(float originX, float originY, float targetX, float targetY)

Here you can find the source of angleInRadians(float originX, float originY, float targetX, float targetY)

Description

angle In Radians

License

Apache License

Declaration

public static float angleInRadians(float originX, float originY, float targetX, float targetY) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static float angleInRadians(float originX, float originY, float targetX, float targetY) {
        return (float) Math.atan2(targetY - originY, targetX - originX);
    }//from w ww.  ja  v  a 2  s  .c  o m
}

Related

  1. angleEquals(double angle1, double angle2, double epsilon)
  2. AngleEvaluation(double angle, int effectIndex, int angleNeeded, int orbValue)
  3. angleFromDirection(float dirX, float dirY)
  4. angleFromR(final double[][] R)
  5. angleInDegrees(float ownerRotation, float x1, float y1, float x2, float y2)
  6. angleInRange(double angle, double min, double max)
  7. angleInRange(float theta1, float theta2, float tolerance)
  8. angleLinear(float a, float b, int spin, float f)
  9. angleOfLine(int x1, int y1, int x2, int y2)