mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
inline NotNull and add Contract annotations
This commit is contained in:
parent
118159d354
commit
02abb81b85
@ -292,8 +292,8 @@ public final class Vec implements Point {
|
|||||||
* in radians
|
* in radians
|
||||||
* @return a new, rotated vector
|
* @return a new, rotated vector
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@Contract(pure = true)
|
||||||
public Vec rotateAroundX(double angle) {
|
public @NotNull Vec rotateAroundX(double angle) {
|
||||||
double angleCos = Math.cos(angle);
|
double angleCos = Math.cos(angle);
|
||||||
double angleSin = Math.sin(angle);
|
double angleSin = Math.sin(angle);
|
||||||
|
|
||||||
@ -314,8 +314,8 @@ public final class Vec implements Point {
|
|||||||
* in radians
|
* in radians
|
||||||
* @return a new, rotated vector
|
* @return a new, rotated vector
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@Contract(pure = true)
|
||||||
public Vec rotateAroundY(double angle) {
|
public @NotNull Vec rotateAroundY(double angle) {
|
||||||
double angleCos = Math.cos(angle);
|
double angleCos = Math.cos(angle);
|
||||||
double angleSin = Math.sin(angle);
|
double angleSin = Math.sin(angle);
|
||||||
|
|
||||||
@ -336,8 +336,8 @@ public final class Vec implements Point {
|
|||||||
* in radians
|
* in radians
|
||||||
* @return a new, rotated vector
|
* @return a new, rotated vector
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@Contract(pure = true)
|
||||||
public Vec rotateAroundZ(double angle) {
|
public @NotNull Vec rotateAroundZ(double angle) {
|
||||||
double angleCos = Math.cos(angle);
|
double angleCos = Math.cos(angle);
|
||||||
double angleSin = Math.sin(angle);
|
double angleSin = Math.sin(angle);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user