env3d
Class EnvObject

java.lang.Object
  extended by env3d.EnvObject

public class EnvObject
extends java.lang.Object


Constructor Summary
EnvObject()
          Creates a new instance of EnvObject
 
Method Summary
 double distance(double x, double y, double z)
           
 double distance(EnvObject obj)
          returns the distance between this and another object
 java.lang.String getModel()
           
 double getRotateX()
           
 double getRotateY()
           
 double getRotateZ()
           
 double getScale()
           
 java.lang.String getTexture()
           
 java.lang.String getTextureNormal()
           
 double getX()
           
 double getY()
           
 double getZ()
           
 boolean isTransparent()
           
 void setModel(java.lang.String model)
           
 void setRotateX(double rotateX)
           
 void setRotateY(double rotateY)
           
 void setRotateZ(double rotateZ)
           
 void setScale(double scale)
           
 void setTexture(java.lang.String texture)
           
 void setTextureNormal(java.lang.String textureNormal)
           
 void setTransparent(boolean transparent)
           
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvObject

public EnvObject()
Creates a new instance of EnvObject

Method Detail

getX

public double getX()

setX

public void setX(double x)

getY

public double getY()

setY

public void setY(double y)

getZ

public double getZ()

setZ

public void setZ(double z)

getRotateX

public double getRotateX()

setRotateX

public void setRotateX(double rotateX)

getRotateY

public double getRotateY()

setRotateY

public void setRotateY(double rotateY)

getRotateZ

public double getRotateZ()

setRotateZ

public void setRotateZ(double rotateZ)

getTexture

public java.lang.String getTexture()

setTexture

public void setTexture(java.lang.String texture)

getModel

public java.lang.String getModel()

setModel

public void setModel(java.lang.String model)

getScale

public double getScale()

setScale

public void setScale(double scale)

distance

public double distance(EnvObject obj)
returns the distance between this and another object

Parameters:
obj - the other object
Returns:
distance

distance

public double distance(double x,
                       double y,
                       double z)

isTransparent

public boolean isTransparent()
Returns:
the transparent

setTransparent

public void setTransparent(boolean transparent)
Parameters:
transparent - the transparent to set. Only works if the texture has an alpha channel.

getTextureNormal

public java.lang.String getTextureNormal()
Returns:
the textureNormal

setTextureNormal

public void setTextureNormal(java.lang.String textureNormal)
Parameters:
textureNormal - the textureNormal to set