public class VectorUtils extends Object
Constructor and Description |
---|
VectorUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
angleToXAxis(AbstractVector AbstractVector) |
static double |
angleToXAxis(org.bukkit.util.Vector vector) |
static float |
clampYaw(float yaw) |
static AbstractVector |
rotateAroundAxisX(AbstractVector v,
double angle) |
static org.bukkit.util.Vector |
rotateAroundAxisX(org.bukkit.util.Vector v,
double angle) |
static AbstractVector |
rotateAroundAxisY(AbstractVector v,
double angle) |
static org.bukkit.util.Vector |
rotateAroundAxisY(org.bukkit.util.Vector v,
double angle) |
static AbstractVector |
rotateAroundAxisZ(AbstractVector v,
double angle) |
static org.bukkit.util.Vector |
rotateAroundAxisZ(org.bukkit.util.Vector v,
double angle) |
static AbstractVector |
rotateVector(AbstractVector v,
double angleX,
double angleY,
double angleZ) |
static AbstractVector |
rotateVector(AbstractVector v,
float yawDegrees,
float pitchDegrees) |
static AbstractVector |
rotateVector(AbstractVector v,
org.bukkit.Location location) |
static org.bukkit.util.Vector |
rotateVector(org.bukkit.util.Vector v,
double angleX,
double angleY,
double angleZ) |
static org.bukkit.util.Vector |
rotateVector(org.bukkit.util.Vector v,
float yawDegrees,
float pitchDegrees) |
static org.bukkit.util.Vector |
rotateVector(org.bukkit.util.Vector v,
org.bukkit.Location location) |
public static float clampYaw(float yaw)
public static final AbstractVector rotateAroundAxisX(AbstractVector v, double angle)
public static final AbstractVector rotateAroundAxisY(AbstractVector v, double angle)
public static final AbstractVector rotateAroundAxisZ(AbstractVector v, double angle)
public static final AbstractVector rotateVector(AbstractVector v, double angleX, double angleY, double angleZ)
public static final AbstractVector rotateVector(AbstractVector v, org.bukkit.Location location)
public static final AbstractVector rotateVector(AbstractVector v, float yawDegrees, float pitchDegrees)
public static final double angleToXAxis(AbstractVector AbstractVector)
public static final org.bukkit.util.Vector rotateAroundAxisX(org.bukkit.util.Vector v, double angle)
public static final org.bukkit.util.Vector rotateAroundAxisY(org.bukkit.util.Vector v, double angle)
public static final org.bukkit.util.Vector rotateAroundAxisZ(org.bukkit.util.Vector v, double angle)
public static final org.bukkit.util.Vector rotateVector(org.bukkit.util.Vector v, double angleX, double angleY, double angleZ)
public static final org.bukkit.util.Vector rotateVector(org.bukkit.util.Vector v, org.bukkit.Location location)
public static final org.bukkit.util.Vector rotateVector(org.bukkit.util.Vector v, float yawDegrees, float pitchDegrees)
public static final double angleToXAxis(org.bukkit.util.Vector vector)
Copyright © 2020. All rights reserved.