rp1.rossum
Class RsPoint

java.lang.Object
  extended by rp1.rossum.RsPoint
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RsSegment

public class RsPoint
extends java.lang.Object
implements java.io.Serializable

A representation of a single point.

See Also:
Serialized Form

Field Summary
 double x
           
 double y
           
 
Constructor Summary
RsPoint()
           
RsPoint(double xarg, double yarg)
           
RsPoint(int xarg, int yarg)
           
RsPoint(RsPoint point)
           
RsPoint(RsVector input)
           
 
Method Summary
 void copy(RsPoint p)
           
 double distance(RsPoint test)
           
 void move(double xArg, double yArg)
           
 void move(int xArg, int yArg)
           
 RsVector subtract(RsPoint p)
           
 void translate(double xArg, double yArg)
           
 void translate(int xArg, int yArg)
           
 void translate(RsVector v)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x

y

public double y
Constructor Detail

RsPoint

public RsPoint()

RsPoint

public RsPoint(RsPoint point)

RsPoint

public RsPoint(double xarg,
               double yarg)

RsPoint

public RsPoint(int xarg,
               int yarg)

RsPoint

public RsPoint(RsVector input)
Method Detail

subtract

public RsVector subtract(RsPoint p)

move

public void move(double xArg,
                 double yArg)

move

public void move(int xArg,
                 int yArg)

translate

public void translate(double xArg,
                      double yArg)

translate

public void translate(int xArg,
                      int yArg)

translate

public void translate(RsVector v)

distance

public double distance(RsPoint test)

copy

public void copy(RsPoint p)