Java Angle angleLinear(float a, float b, int spin, float f)

Here you can find the source of angleLinear(float a, float b, int spin, float f)

Description

angle Linear

License

Open Source License

Declaration

public static float angleLinear(float a, float b, int spin, float f) 

Method Source Code

//package com.java2s;

public class Main {
    public static float angleLinear(float a, float b, int spin, float f) {
        if (spin == 0)
            return a;

        if (spin > 0 && (b - a) < 0)
            b += 360.0f;/*from  ww  w . java 2 s . c o m*/

        if (spin < 0 && (b - a) > 0)
            b -= 360.0f;

        return linear(a, b, f);
    }

    public static float linear(float a, float b, float f) {
        return a + (b - a) * f;
    }
}

Related

  1. angleFromR(final double[][] R)
  2. angleInDegrees(float ownerRotation, float x1, float y1, float x2, float y2)
  3. angleInRadians(float originX, float originY, float targetX, float targetY)
  4. angleInRange(double angle, double min, double max)
  5. angleInRange(float theta1, float theta2, float tolerance)
  6. angleOfLine(int x1, int y1, int x2, int y2)
  7. angleOfLineDeg(double x1, double y1, double x2, double y2)
  8. angleRadToDegClipped(final double angleRad)
  9. anglesInvalid(double sza, double vza, double saa, double vaa)