Package arc.math
Class Angles
java.lang.Object
arc.math.Angles
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
angle
(float x, float y) static float
angle
(float x, float y, float x2, float y2) static float
angleDist
(float a, float b) static float
angleRad
(float x, float y, float x2, float y2) static float
backwardDistance
(float angle1, float angle2) static void
circleVectors
(int points, float length, float offset, Floatc2 pos) static void
circleVectors
(int points, float length, Floatc2 pos) static float
clampRange
(float angle, float dest, float range) static float
forwardDistance
(float angle1, float angle2) static float
mouseAngle
(float cx, float cy) static float
moveToward
(float angle, float to, float speed) static boolean
near
(float a, float b, float range) static void
randLenVectors
(long seed, float fin, int amount, float length, float angle, float range, Angles.ParticleConsumer cons) static void
randLenVectors
(long seed, float fin, int amount, float length, Angles.ParticleConsumer cons) static void
randLenVectors
(long seed, int amount, float length, float angle, float range, float spread, Floatc2 cons) static void
randLenVectors
(long seed, int amount, float length, float angle, float range, Floatc2 cons) static void
randLenVectors
(long seed, int amount, float minLength, float length, Floatc2 cons) static void
randLenVectors
(long seed, int amount, float length, Floatc2 cons) static void
randVectors
(long seed, int amount, float length, Floatc2 cons) static float
trnsx
(float angle, float len) static float
trnsx
(float angle, float x, float y) static float
trnsy
(float angle, float len) static float
trnsy
(float angle, float x, float y) static boolean
within
(float a, float b, float margin)
-
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
-
circleVectors
-
randVectors
-
randLenVectors
-
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)
-