Package ac.boar.anticheat.util.math
Class Vec3
java.lang.Object
ac.boar.anticheat.util.math.Vec3
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(float v) add(float v, float v1, float v2) clone()intcompareTo(org.cloudburstmc.math.vector.Vector3i vec3i) floatdistanceTo(Vec3 vec) floatdistToCenterSqr(float d, float e, float f) floatdistToCenterSqr(Vec3 vec3) divide(float v) divide(float v, float v1, float v2) down(float v) east(float v) floatfloatfloatlength()floatmultiply(float a) multiply(float v, float v1, float v2) north(float v) south(float v) floatsquaredDistanceTo(Vec3 vec) subtract(float v, float v1, float v2) org.cloudburstmc.math.vector.Vector3dorg.cloudburstmc.math.vector.Vector3forg.cloudburstmc.math.vector.Vector3iup(float v) west(float v)
-
Field Details
-
ZERO
-
x
public float x -
y
public float y -
z
public float z
-
-
Constructor Details
-
Vec3
public Vec3(float x, float y, float z) -
Vec3
public Vec3(org.cloudburstmc.math.vector.Vector3f vector3f) -
Vec3
public Vec3(org.cloudburstmc.math.vector.Vector3i vector3i)
-
-
Method Details
-
compareTo
public int compareTo(org.cloudburstmc.math.vector.Vector3i vec3i) -
distToCenterSqr
-
distToCenterSqr
public float distToCenterSqr(float d, float e, float f) -
toVector3f
public org.cloudburstmc.math.vector.Vector3f toVector3f() -
toVector3i
public org.cloudburstmc.math.vector.Vector3i toVector3i() -
toVector3d
public org.cloudburstmc.math.vector.Vector3d toVector3d() -
squaredDistanceTo
-
distanceTo
-
horizontalLength
public float horizontalLength() -
horizontalLengthSquared
public float horizontalLengthSquared() -
lengthSquared
public float lengthSquared() -
length
public float length() -
add
-
add
-
add
-
subtract
-
subtract
-
multiply
-
multiply
-
multiply
-
divide
-
divide
-
up
-
down
-
north
-
south
-
east
-
west
-
normalize
-
horizontalToString
-
clone
-