net.minecraft.src
Class Angle3D

java.lang.Object
  extended by net.minecraft.src.Angle3D

public class Angle3D
extends java.lang.Object

This class handles angles. Basically all it does it store angles. You can directly alter the angles.

Author:
GaryCXJk

Field Summary
 float angleX
           
 float angleY
           
 float angleZ
           
 
Constructor Summary
Angle3D(float x, float y, float z)
          The constructor to create a new Angle3D.
 
Method Summary
 void addAngles(Angle3D angles)
          Adds the angles of another Angle3D to the current angles.
 void addAngles(float x, float y, float z)
          Adds the given angles to the current angles.
 Angle3D copy()
          Copies the current Angle3D over to a new Angle3D instance.
static Angle3D getCenter(Angle3D angles1, Angle3D angles2)
          Gets the center angle between two angles.
 void multiplyAngles(Angle3D angles)
          Multiplies the angles with a given Angle3D.
 void multiplyAngles(float x, float y, float z)
          Multiplies the angles with the given angles.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

angleX

public float angleX

angleY

public float angleY

angleZ

public float angleZ
Constructor Detail

Angle3D

public Angle3D(float x,
               float y,
               float z)
The constructor to create a new Angle3D.

Parameters:
x - the x-rotation
y - the y-rotation
z - the z-rotation
Method Detail

addAngles

public void addAngles(float x,
                      float y,
                      float z)
Adds the given angles to the current angles.

Parameters:
x - the x-rotation
y - the y-rotation
z - the z-rotation

addAngles

public void addAngles(Angle3D angles)
Adds the angles of another Angle3D to the current angles.

Parameters:
angles - the Angle3D

multiplyAngles

public void multiplyAngles(float x,
                           float y,
                           float z)
Multiplies the angles with the given angles.

Parameters:
x - the x-rotation
y - the y-rotation
z - the z-rotation

multiplyAngles

public void multiplyAngles(Angle3D angles)
Multiplies the angles with a given Angle3D.

Parameters:
angles - the Angle3D

getCenter

public static Angle3D getCenter(Angle3D angles1,
                                Angle3D angles2)
Gets the center angle between two angles.

Parameters:
angles1 - the first Angle3D
angles2 - the second Angle3D
Returns:
the center Angle3D

copy

public Angle3D copy()
Copies the current Angle3D over to a new Angle3D instance.

Returns:
a copy of the Angle3D instance