Class VectorUtils
java.lang.Object
me.emafire003.dev.particleanimationlib.util.VectorUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.util.math.Vec3drotateVector(net.minecraft.util.math.Vec3d vector, float yawDegrees, float pitchDegrees) This handles non-unit vectors, with yaw and pitch instead of X,Y,Z angles.static net.minecraft.util.math.Vec3drotateVector(net.minecraft.util.math.Vec3d vector, float angleX, float angleY, float angleZ)
-
Constructor Details
-
VectorUtils
public VectorUtils()
-
-
Method Details
-
rotateVector
public static net.minecraft.util.math.Vec3d rotateVector(net.minecraft.util.math.Vec3d vector, float angleX, float angleY, float angleZ) -
rotateVector
public static net.minecraft.util.math.Vec3d rotateVector(net.minecraft.util.math.Vec3d vector, float yawDegrees, float pitchDegrees) This handles non-unit vectors, with yaw and pitch instead of X,Y,Z angles.Thanks to SexyToad!
- Parameters:
vector- vector to rotateyawDegrees- yaw degreespitchDegrees- pitch degrees- Returns:
- rotated vector
-