Class ep.cg.Point
All Packages Class Hierarchy This Package Previous Next Index
Class ep.cg.Point
java.lang.Object
|
+----ep.cg.Point
- public class Point
- extends Object
-
ORIGIN
-
-
UNDEF
-
-
ident_
-
-
segments_
- The set of segments which originate from this point.
-
x_
-
-
y_
-
-
Point()
-
-
Point(double, double)
-
-
Point(double, double, Segment)
-
-
add(Point)
-
-
addSeg(Segment)
-
-
clrSegs()
-
-
dist(Point)
-
-
equals(Point)
-
-
fwIsXchain(boolean)
-
-
fwIsXchain()
-
-
getIdent()
- Returns the identity of the point.
-
getSeg(int)
- Returns one of the segments originating from this point.
-
minus(Point)
-
-
minus(Point, Point)
- Substracts point p2 from p1 and returns a new point.
-
nbSegs()
- Returns the number of segments which originate from
this point.
-
normalize()
- Consider the point as a vector and normalize it.
-
remSeg(Segment)
-
-
remSeg(Point)
-
-
remSeg(int)
-
-
remSeg(Point, int)
-
-
rvIsXchain(boolean)
-
-
rvIsXchain()
-
-
scale(double)
- Scale the point by s about the origin.
-
setIdent(int)
-
-
toString()
-
-
x()
-
-
x(double)
-
-
y()
-
-
y(double)
-
ORIGIN
public final static Point ORIGIN
x_
protected double x_
y_
protected double y_
ident_
protected int ident_
UNDEF
public final static Point UNDEF
segments_
protected Vector segments_
- The set of segments which originate from this point.
Note that a given sgment is not supposed to originate from two
different points, even though this is not enforced.
Point
public Point()
Point
public Point(double x,
double y)
Point
public Point(double x,
double y,
Segment pSegment)
setIdent
public void setIdent(int i)
x
public final double x()
y
public final double y()
x
public final void x(double x)
y
public final void y(double y)
addSeg
public final void addSeg(Segment fSegment)
getSeg
public final Segment getSeg(int segmentNumber)
- Returns one of the segments originating from this point.
remSeg
public final void remSeg(Segment fSegment)
remSeg
public final void remSeg(Point p2)
remSeg
public final void remSeg(int segmentNumber)
remSeg
public final void remSeg(Point p2,
int ident)
clrSegs
public final void clrSegs()
fwIsXchain
public final void fwIsXchain(boolean b)
rvIsXchain
public final void rvIsXchain(boolean b)
fwIsXchain
public final boolean fwIsXchain()
rvIsXchain
public final boolean rvIsXchain()
getIdent
public final int getIdent()
- Returns the identity of the point. Can be used to assign a
color...
nbSegs
public final int nbSegs()
- Returns the number of segments which originate from
this point.
equals
public final boolean equals(Point p)
dist
public double dist(Point p)
add
public void add(Point p)
minus
public void minus(Point p)
minus
public final static Point minus(Point p1,
Point p2)
- Substracts point p2 from p1 and returns a new point.
scale
public final void scale(double s)
- Scale the point by s about the origin.
normalize
public final void normalize()
- Consider the point as a vector and normalize it.
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index