public class BlockVector extends Vector
Constructor and Description |
---|
BlockVector()
Construct the vector with all components as 0.
|
BlockVector(double x,
double y,
double z)
Construct the vector with provided double components.
|
BlockVector(float x,
float y,
float z)
Construct the vector with provided float components.
|
BlockVector(int x,
int y,
int z)
Construct the vector with provided integer components.
|
BlockVector(Vector vec)
Construct the vector with another vector.
|
Modifier and Type | Method and Description |
---|---|
BlockVector |
clone()
Get a new block vector.
|
static BlockVector |
deserialize(Map<String,Object> args) |
boolean |
equals(Object obj)
Checks if another object is equivalent.
|
int |
hashCode()
Returns a hash code for this vector.
|
add, angle, checkFinite, copy, crossProduct, distance, distanceSquared, divide, dot, getBlockX, getBlockY, getBlockZ, getCrossProduct, getEpsilon, getMaximum, getMidpoint, getMinimum, getRandom, getX, getY, getZ, isInAABB, isInSphere, length, lengthSquared, midpoint, multiply, multiply, multiply, multiply, normalize, serialize, setX, setX, setX, setY, setY, setY, setZ, setZ, setZ, subtract, toBlockVector, toLocation, toLocation, toString, zero
public BlockVector()
public BlockVector(Vector vec)
vec
- The other vector.public BlockVector(int x, int y, int z)
x
- X componenty
- Y componentz
- Z componentpublic BlockVector(double x, double y, double z)
x
- X componenty
- Y componentz
- Z componentpublic BlockVector(float x, float y, float z)
x
- X componenty
- Y componentz
- Z componentpublic boolean equals(Object obj)
public int hashCode()
public BlockVector clone()
public static BlockVector deserialize(Map<String,Object> args)
Copyright © 2017. All rights reserved.