YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.util.Vec3 Class Reference

Public Member Functions

Vec3 subtract (Vec3 par1Vec3)
 
Vec3 normalize ()
 
double dotProduct (Vec3 par1Vec3)
 
Vec3 crossProduct (Vec3 par1Vec3)
 
Vec3 addVector (double par1, double par3, double par5)
 
double distanceTo (Vec3 par1Vec3)
 
double squareDistanceTo (Vec3 par1Vec3)
 
double squareDistanceTo (double par1, double par3, double par5)
 
double lengthVector ()
 
Vec3 getIntermediateWithXValue (Vec3 par1Vec3, double par2)
 
Vec3 getIntermediateWithYValue (Vec3 par1Vec3, double par2)
 
Vec3 getIntermediateWithZValue (Vec3 par1Vec3, double par2)
 
String toString ()
 
void rotateAroundX (float par1)
 
void rotateAroundY (float par1)
 
void rotateAroundZ (float par1)
 

Static Public Member Functions

static Vec3 createVectorHelper (double par0, double par2, double par4)
 

Public Attributes

final Vec3Pool myVec3LocalPool
 
double xCoord
 
double yCoord
 
double zCoord
 

Static Public Attributes

static final Vec3Pool fakePool = new Vec3Pool(-1, -1)
 

Protected Member Functions

 Vec3 (Vec3Pool par1Vec3Pool, double par2, double par4, double par6)
 
Vec3 setComponents (double par1, double par3, double par5)
 

Constructor & Destructor Documentation

net.minecraft.util.Vec3.Vec3 ( Vec3Pool  par1Vec3Pool,
double  par2,
double  par4,
double  par6 
)
protected

Member Function Documentation

Vec3 net.minecraft.util.Vec3.addVector ( double  par1,
double  par3,
double  par5 
)

Adds the specified x,y,z vector components to this vector and returns the resulting vector. Does not change this vector.

static Vec3 net.minecraft.util.Vec3.createVectorHelper ( double  par0,
double  par2,
double  par4 
)
static

Static method for creating a new Vec3D given the three x,y,z values. This is only called from the other static method which creates and places it in the list.

Vec3 net.minecraft.util.Vec3.crossProduct ( Vec3  par1Vec3)

Returns a new vector with the result of this vector x the specified vector.

double net.minecraft.util.Vec3.distanceTo ( Vec3  par1Vec3)

Euclidean distance between this and the specified vector, returned as double.

double net.minecraft.util.Vec3.dotProduct ( Vec3  par1Vec3)
Vec3 net.minecraft.util.Vec3.getIntermediateWithXValue ( Vec3  par1Vec3,
double  par2 
)

Returns a new vector with x value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.

Vec3 net.minecraft.util.Vec3.getIntermediateWithYValue ( Vec3  par1Vec3,
double  par2 
)

Returns a new vector with y value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.

Vec3 net.minecraft.util.Vec3.getIntermediateWithZValue ( Vec3  par1Vec3,
double  par2 
)

Returns a new vector with z value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.

double net.minecraft.util.Vec3.lengthVector ( )

Returns the length of the vector.

Vec3 net.minecraft.util.Vec3.normalize ( )

Normalizes the vector to a length of 1 (except if it is the zero vector)

void net.minecraft.util.Vec3.rotateAroundX ( float  par1)

Rotates the vector around the x axis by the specified angle.

void net.minecraft.util.Vec3.rotateAroundY ( float  par1)

Rotates the vector around the y axis by the specified angle.

void net.minecraft.util.Vec3.rotateAroundZ ( float  par1)

Rotates the vector around the z axis by the specified angle.

Vec3 net.minecraft.util.Vec3.setComponents ( double  par1,
double  par3,
double  par5 
)
protected

Sets the x,y,z components of the vector as specified.

double net.minecraft.util.Vec3.squareDistanceTo ( Vec3  par1Vec3)

The square of the Euclidean distance between this and the specified vector.

double net.minecraft.util.Vec3.squareDistanceTo ( double  par1,
double  par3,
double  par5 
)

The square of the Euclidean distance between this and the vector of x,y,z components passed in.

Vec3 net.minecraft.util.Vec3.subtract ( Vec3  par1Vec3)

Returns a new vector with the result of the specified vector minus this.

String net.minecraft.util.Vec3.toString ( )

Member Data Documentation

final Vec3Pool net.minecraft.util.Vec3.fakePool = new Vec3Pool(-1, -1)
static

A global Vec3Pool that always creates new vectors instead of reusing them and is thread-safe.

final Vec3Pool net.minecraft.util.Vec3.myVec3LocalPool
double net.minecraft.util.Vec3.xCoord

X coordinate of Vec3D

double net.minecraft.util.Vec3.yCoord

Y coordinate of Vec3D

double net.minecraft.util.Vec3.zCoord

Z coordinate of Vec3D


The documentation for this class was generated from the following file: