Package arc.math

Class Angles

java.lang.Object
arc.math.Angles

public class Angles extends Object
  • Constructor Details

    • Angles

      public Angles()
  • Method Details

    • forwardDistance

      public static float forwardDistance(float angle1, float angle2)
    • backwardDistance

      public static float backwardDistance(float angle1, float angle2)
    • within

      public static boolean within(float a, float b, float margin)
    • angleDist

      public static float angleDist(float a, float b)
    • near

      public static boolean near(float a, float b, float range)
    • clampRange

      public static float clampRange(float angle, float dest, float range)
    • moveToward

      public static float moveToward(float angle, float to, float speed)
    • angle

      public static float angle(float x, float y)
    • angle

      public static float angle(float x, float y, float x2, float y2)
    • angleRad

      public static float angleRad(float x, float y, float x2, float y2)
    • trnsx

      public static float trnsx(float angle, float len)
    • trnsy

      public static float trnsy(float angle, float len)
    • trnsx

      public static float trnsx(float angle, float x, float y)
    • trnsy

      public static float trnsy(float angle, float x, float y)
    • mouseAngle

      public static float mouseAngle(float cx, float cy)
    • circleVectors

      public static void circleVectors(int points, float length, Floatc2 pos)
    • circleVectors

      public static void circleVectors(int points, float length, float offset, Floatc2 pos)
    • randVectors

      public static void randVectors(long seed, int amount, float length, Floatc2 cons)
    • randLenVectors

      public static void randLenVectors(long seed, int amount, float length, Floatc2 cons)
    • randLenVectors

      public static void randLenVectors(long seed, int amount, float minLength, float length, Floatc2 cons)
    • randLenVectors

      public static void randLenVectors(long seed, int amount, float length, float angle, float range, Floatc2 cons)
    • randLenVectors

      public static void randLenVectors(long seed, int amount, float length, float angle, float range, float spread, Floatc2 cons)
    • randLenVectors

      public static void randLenVectors(long seed, float fin, int amount, float length, Angles.ParticleConsumer cons)
    • randLenVectors

      public static void randLenVectors(long seed, float fin, int amount, float length, float angle, float range, Angles.ParticleConsumer cons)