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

Variable Index

 o ORIGIN
 o UNDEF
 o ident_
 o segments_
The set of segments which originate from this point.
 o x_
 o y_

Constructor Index

 o Point()
 o Point(double, double)
 o Point(double, double, Segment)

Method Index

 o add(Point)
 o addSeg(Segment)
 o clrSegs()
 o dist(Point)
 o equals(Point)
 o fwIsXchain(boolean)
 o fwIsXchain()
 o getIdent()
Returns the identity of the point.
 o getSeg(int)
Returns one of the segments originating from this point.
 o minus(Point)
 o minus(Point, Point)
Substracts point p2 from p1 and returns a new point.
 o nbSegs()
Returns the number of segments which originate from this point.
 o normalize()
Consider the point as a vector and normalize it.
 o remSeg(Segment)
 o remSeg(Point)
 o remSeg(int)
 o remSeg(Point, int)
 o rvIsXchain(boolean)
 o rvIsXchain()
 o scale(double)
Scale the point by s about the origin.
 o setIdent(int)
 o toString()
 o x()
 o x(double)
 o y()
 o y(double)

Variables

 o ORIGIN
  public final static Point ORIGIN
 o x_
  protected double x_
 o y_
  protected double y_
 o ident_
  protected int ident_
 o UNDEF
  public final static Point UNDEF
 o 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.

Constructors

 o Point
  public Point()
 o Point
  public Point(double x,
               double y)
 o Point
  public Point(double x,
               double y,
               Segment pSegment)

Methods

 o setIdent
  public void setIdent(int i)
 o x
  public final double x()
 o y
  public final double y()
 o x
  public final void x(double x)
 o y
  public final void y(double y)
 o addSeg
  public final void addSeg(Segment fSegment)
 o getSeg
  public final Segment getSeg(int segmentNumber)
Returns one of the segments originating from this point.
 o remSeg
  public final void remSeg(Segment fSegment)
 o remSeg
  public final void remSeg(Point p2)
 o remSeg
  public final void remSeg(int segmentNumber)
 o remSeg
  public final void remSeg(Point p2,
                           int ident)
 o clrSegs
  public final void clrSegs()
 o fwIsXchain
  public final void fwIsXchain(boolean b)
 o rvIsXchain
  public final void rvIsXchain(boolean b)
 o fwIsXchain
  public final boolean fwIsXchain()
 o rvIsXchain
  public final boolean rvIsXchain()
 o getIdent
  public final int getIdent()
Returns the identity of the point. Can be used to assign a color...
 o nbSegs
  public final int nbSegs()
Returns the number of segments which originate from this point.
 o equals
  public final boolean equals(Point p)
 o dist
  public double dist(Point p)
 o add
  public void add(Point p)
 o minus
  public void minus(Point p)
 o minus
  public final static Point minus(Point p1,
                                  Point p2)
Substracts point p2 from p1 and returns a new point.
 o scale
  public final void scale(double s)
Scale the point by s about the origin.
 o normalize
  public final void normalize()
Consider the point as a vector and normalize it.
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index