+9
-0
lines changedFilter options
+9
-0
lines changed Original file line number Diff line number Diff line change
@@ -33,10 +33,16 @@ public Rotation() {
33
33
setIdentity();
34
34
}
35
35
36
+
/**
37
+
* @param angle in radians
38
+
*/
36
39
public Rotation(float angle) {
37
40
set(angle);
38
41
}
39
42
43
+
/**
44
+
* @param angle in radians
45
+
*/
40
46
public Rotation set(float angle) {
41
47
s = sin(angle);
42
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
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4