net.cscott.sdr.util
Class Point
java.lang.Object
net.cscott.sdr.util.Point
public class Point
- extends Object
A 2D point, where x and y coordinate are Fraction
s.
ZERO
public static final Point ZERO
x
public final Fraction x
y
public final Fraction y
Point
public Point(Fraction x,
Fraction y)
add
public Point add(Point p)
subtract
public Point subtract(Point p)
multiply
public Point multiply(Fraction f)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2009 C. Scott Ananian