env3d
Class EnvObject
java.lang.Object
env3d.EnvObject
public class EnvObject
- extends java.lang.Object
Constructor Summary |
EnvObject()
Creates a new instance of EnvObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvObject
public EnvObject()
- Creates a new instance of EnvObject
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