Package ch.njol.util
Class VectorMath
java.lang.Object
ch.njol.util.VectorMath
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
Deprecated, for removal: This API element is subject to removal in a future version.static final double
Deprecated, for removal: This API element is subject to removal in a future version.static final double
Deprecated, for removal: This API element is subject to removal in a future version.static final double
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyVector
(org.bukkit.util.Vector vector1, org.bukkit.util.Vector vector2) Deprecated, for removal: This API element is subject to removal in a future version.static org.bukkit.util.Vector
fromCylindricalCoordinates
(double radius, double phi, double height) Deprecated, for removal: This API element is subject to removal in a future version.static float
fromSkriptPitch
(float pitch) Deprecated, for removal: This API element is subject to removal in a future version.static float
fromSkriptYaw
(float yaw) Deprecated, for removal: This API element is subject to removal in a future version.static org.bukkit.util.Vector
fromSphericalCoordinates
(double radius, double theta, double phi) Deprecated, for removal: This API element is subject to removal in a future version.static org.bukkit.util.Vector
fromYawAndPitch
(float yaw, float pitch) Deprecated, for removal: This API element is subject to removal in a future version.static float
getPitch
(org.bukkit.util.Vector vector) Deprecated, for removal: This API element is subject to removal in a future version.static float
getYaw
(org.bukkit.util.Vector vector) Deprecated, for removal: This API element is subject to removal in a future version.static boolean
isZero
(org.bukkit.util.Vector vector) Deprecated, for removal: This API element is subject to removal in a future version.Check whether or not each component of this vector is equal to 0.static org.bukkit.util.Vector
rot
(org.bukkit.util.Vector vector, org.bukkit.util.Vector axis, double angle) Deprecated, for removal: This API element is subject to removal in a future version.static org.bukkit.util.Vector
rotX
(org.bukkit.util.Vector vector, double angle) Deprecated, for removal: This API element is subject to removal in a future version.static org.bukkit.util.Vector
rotY
(org.bukkit.util.Vector vector, double angle) Deprecated, for removal: This API element is subject to removal in a future version.static org.bukkit.util.Vector
rotZ
(org.bukkit.util.Vector vector, double angle) Deprecated, for removal: This API element is subject to removal in a future version.static float
skriptPitch
(float pitch) Deprecated, for removal: This API element is subject to removal in a future version.static float
skriptYaw
(float yaw) Deprecated, for removal: This API element is subject to removal in a future version.static float
wrapAngleDeg
(float angle) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
PI
public static final double PIDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
HALF_PI
public static final double HALF_PIDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
DEG_TO_RAD
public static final double DEG_TO_RADDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
RAD_TO_DEG
public static final double RAD_TO_DEGDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
fromSphericalCoordinates
public static org.bukkit.util.Vector fromSphericalCoordinates(double radius, double theta, double phi) Deprecated, for removal: This API element is subject to removal in a future version. -
fromCylindricalCoordinates
public static org.bukkit.util.Vector fromCylindricalCoordinates(double radius, double phi, double height) Deprecated, for removal: This API element is subject to removal in a future version. -
fromYawAndPitch
public static org.bukkit.util.Vector fromYawAndPitch(float yaw, float pitch) Deprecated, for removal: This API element is subject to removal in a future version. -
getYaw
public static float getYaw(org.bukkit.util.Vector vector) Deprecated, for removal: This API element is subject to removal in a future version. -
getPitch
public static float getPitch(org.bukkit.util.Vector vector) Deprecated, for removal: This API element is subject to removal in a future version. -
rotX
public static org.bukkit.util.Vector rotX(org.bukkit.util.Vector vector, double angle) Deprecated, for removal: This API element is subject to removal in a future version. -
rotY
public static org.bukkit.util.Vector rotY(org.bukkit.util.Vector vector, double angle) Deprecated, for removal: This API element is subject to removal in a future version. -
rotZ
public static org.bukkit.util.Vector rotZ(org.bukkit.util.Vector vector, double angle) Deprecated, for removal: This API element is subject to removal in a future version. -
rot
public static org.bukkit.util.Vector rot(org.bukkit.util.Vector vector, org.bukkit.util.Vector axis, double angle) Deprecated, for removal: This API element is subject to removal in a future version. -
skriptYaw
public static float skriptYaw(float yaw) Deprecated, for removal: This API element is subject to removal in a future version. -
skriptPitch
public static float skriptPitch(float pitch) Deprecated, for removal: This API element is subject to removal in a future version. -
fromSkriptYaw
public static float fromSkriptYaw(float yaw) Deprecated, for removal: This API element is subject to removal in a future version. -
fromSkriptPitch
public static float fromSkriptPitch(float pitch) Deprecated, for removal: This API element is subject to removal in a future version. -
wrapAngleDeg
public static float wrapAngleDeg(float angle) Deprecated, for removal: This API element is subject to removal in a future version. -
copyVector
public static void copyVector(org.bukkit.util.Vector vector1, org.bukkit.util.Vector vector2) Deprecated, for removal: This API element is subject to removal in a future version. -
isZero
public static boolean isZero(org.bukkit.util.Vector vector) Deprecated, for removal: This API element is subject to removal in a future version.Check whether or not each component of this vector is equal to 0.
ReplacesVector#isZero()
since that method was added in spigot 1.19.3- Returns:
- true if equal to zero, false if at least one component is non-zero
-