jcreek.cke.util
Class DPoint

java.lang.Object
  extended byjcreek.cke.util.DPoint

public class DPoint
extends java.lang.Object

A class for holding a real position.

Here is the source.

Author:
Larry Barowski

Field Summary
 double x
           
 double y
           
 
Constructor Summary
DPoint()
           
DPoint(double x_in, double y_in)
           
DPoint(DPoint init)
           
 
Method Summary
 boolean equals(DPoint other)
           
 void move(double new_x, double new_y)
           
 void move(DPoint to)
           
 void transform(Matrix33 matrix)
           
 void translate(double x_shift, double y_shift)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x

y

public double y
Constructor Detail

DPoint

public DPoint(double x_in,
              double y_in)

DPoint

public DPoint()

DPoint

public DPoint(DPoint init)
Method Detail

equals

public boolean equals(DPoint other)

move

public void move(double new_x,
                 double new_y)

move

public void move(DPoint to)

translate

public void translate(double x_shift,
                      double y_shift)

transform

public void transform(Matrix33 matrix)


Created at IDI, NTNU by the Artificial Intelligence and Learning group