mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-30 22:02:45 -08:00
Move rest of the classes to dev.slimev package, comment out wrong unit-test, minor cleanups
This commit is contained in:
1 parent
b81458d034
commit
7b15d242f7
57 files changed
+159
-158
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package dev.slimevr.vr.trackers;
|
||||
|
||||
import com.jme3.math.FastMath;
|
||||
import com.jme3.math.Quaternion;
|
||||
|
||||
public enum TrackerMountingRotation {
|
||||
|
||||
FORWARD(180),
|
||||
LEFT(90),
|
||||
BACK(0),
|
||||
RIGHT(-90);
|
||||
|
||||
public final float angle;
|
||||
public final Quaternion quaternion = new Quaternion();
|
||||
|
||||
public static final TrackerMountingRotation[] values = values();
|
||||
|
||||
private TrackerMountingRotation(float angle) {
|
||||
this.angle = angle;
|
||||
quaternion.fromAngles(0, angle * FastMath.DEG_TO_RAD, 0);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user