erland.game.tileadventure
Class Vector3D

java.lang.Object
  extended by erland.game.tileadventure.Vector3D
All Implemented Interfaces:
Cloneable

public class Vector3D
extends Object
implements Cloneable


Constructor Summary
Vector3D()
           
Vector3D(float x, float y, float z)
           
Vector3D(float x, float y, float z, float length)
           
 
Method Summary
 Object clone()
           
 float getLength()
           
 float getX()
           
 float getY()
           
 float getZ()
           
 void setLength(float length)
           
 void setVector(float x, float y, float z)
           
 void setVector(Vector3D p)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vector3D

public Vector3D()

Vector3D

public Vector3D(float x,
                float y,
                float z)

Vector3D

public Vector3D(float x,
                float y,
                float z,
                float length)
Method Detail

setVector

public void setVector(Vector3D p)

setVector

public void setVector(float x,
                      float y,
                      float z)

getX

public float getX()

getY

public float getY()

getZ

public float getZ()

setLength

public void setLength(float length)

getLength

public float getLength()

clone

public Object clone()
Overrides:
clone in class Object


Copyright © 2003-2006 Erland Isaksson. All Rights Reserved.