Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Update QuaternionAdapter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Jan 25, 2023
1 parent 986a5cd commit 8fb01e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/krlite/equator/util/QuaternionAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
import org.joml.Quaternionf;
import org.joml.Quaternionfc;

/**
* @see Quaternionfc
* @see Quaterniondc
*/
public class QuaternionAdapter {
public static Quaterniond fromEulerDeg(double x, double y, double z, double w) {
return new Quaterniond(Math.toRadians(x), Math.toRadians(y), Math.toRadians(z), w);
Expand Down

0 comments on commit 8fb01e6

Please sign in to comment.