de.grogra.math
Class TVector2d

java.lang.Object
  extended by javax.vecmath.Tuple2d
      extended by javax.vecmath.Vector2d
          extended by de.grogra.math.TVector2d
All Implemented Interfaces:
Transform2D, Manageable, java.io.Serializable, java.lang.Cloneable

public class TVector2d
extends Vector2d
implements Transform2D

See Also:
Serialized Form

Field Summary
static ManageableType $TYPE
           
 
Fields inherited from class javax.vecmath.Tuple2d
x, y
 
Constructor Summary
TVector2d()
           
TVector2d(double x, double y)
           
TVector2d(Tuple2d t)
           
 
Method Summary
 java.lang.Object clone()
           
 void fieldModified(PersistenceField field, int[] indices, Transaction t)
           
 ManageableType getManageableType()
           
 int getStamp()
          Returns a stamp for this object.
 Manageable manageableReadResolve()
           
 java.lang.Object manageableWriteReplace()
           
 void transform(Matrix3d in, Matrix3d out)
           
 
Methods inherited from class javax.vecmath.Vector2d
angle, dot, length, lengthSquared, normalize, normalize
 
Methods inherited from class javax.vecmath.Tuple2d
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, epsilonEquals, equals, equals, get, hashCode, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, sub, sub, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

$TYPE

public static final ManageableType $TYPE
Constructor Detail

TVector2d

public TVector2d()

TVector2d

public TVector2d(double x,
                 double y)

TVector2d

public TVector2d(Tuple2d t)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class Vector2d

fieldModified

public void fieldModified(PersistenceField field,
                          int[] indices,
                          Transaction t)
Specified by:
fieldModified in interface Manageable

getManageableType

public ManageableType getManageableType()
Specified by:
getManageableType in interface Manageable

getStamp

public int getStamp()
Description copied from interface: Manageable
Returns a stamp for this object. Each modification to this object increments the stamp. The initial stamp is non-negative.

Specified by:
getStamp in interface Manageable
Returns:
a stamp

manageableReadResolve

public Manageable manageableReadResolve()
Specified by:
manageableReadResolve in interface Manageable

manageableWriteReplace

public java.lang.Object manageableWriteReplace()
Specified by:
manageableWriteReplace in interface Manageable

transform

public void transform(Matrix3d in,
                      Matrix3d out)
Specified by:
transform in interface Transform2D