mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Add Vec#rotate
This commit is contained in:
parent
b0c2b6d1b6
commit
fe3505a6fd
@ -342,6 +342,11 @@ public final class Vec implements Point {
|
||||
return new Vec(newX, newY, z);
|
||||
}
|
||||
|
||||
@Contract(pure = true)
|
||||
public @NotNull Vec rotate(double angleX, double angleY, double angleZ) {
|
||||
return rotateAroundX(angleX).rotateAroundY(angleY).rotateAroundZ(angleZ);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates a linear interpolation between this vector with another
|
||||
* vector.
|
||||
|
Loading…
Reference in New Issue
Block a user