cds.aladin
Class RectangleD

java.lang.Object
  extended by cds.aladin.RectangleD

public class RectangleD
extends java.lang.Object

Manipulation d'un Rectangle en coordonnees reelles

Version:
1.0 : (30 juillet 2002) creation
Author:
Pierre Fernique [CDS]

Field Summary
 double height
           
 double width
           
 double x
           
 double y
           
 
Constructor Summary
RectangleD(double x, double y, double width, double height)
           
 
Method Summary
 RectangleD copy()
          Copie du rectangle
 boolean equals(RectangleD r)
           
 boolean inside(double xc, double yc)
          Return true if (x,y) is in the rectangle
 boolean inside(RectangleD r)
          Retourne true si le rectangle passée en paramètre est contenu dans le rectangle
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x

y

public double y

width

public double width

height

public double height
Constructor Detail

RectangleD

public RectangleD(double x,
                  double y,
                  double width,
                  double height)
Method Detail

copy

public RectangleD copy()
Copie du rectangle


inside

public boolean inside(double xc,
                      double yc)
Return true if (x,y) is in the rectangle


inside

public boolean inside(RectangleD r)
Retourne true si le rectangle passée en paramètre est contenu dans le rectangle


equals

public boolean equals(RectangleD r)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 UDS/CNRS