We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ae780 commit ca16ce0Copy full SHA for ca16ce0
fxgl-entity/src/main/java/com/almasb/fxgl/physics/box2d/common/Rotation.java
@@ -33,10 +33,16 @@ public Rotation() {
33
setIdentity();
34
}
35
36
+ /**
37
+ * @param angle in radians
38
+ */
39
public Rotation(float angle) {
40
set(angle);
41
42
43
44
45
46
public Rotation set(float angle) {
47
s = sin(angle);
48
c = cos(angle);
@@ -55,6 +61,9 @@ public Rotation setIdentity() {
55
61
return this;
56
62
57
63
64
65
+ * @return angle in radians
66
58
67
public float getAngle() {
59
68
return (float) FXGLMath.atan2(s, c);
60
69
0 commit comments