Maven module :un.api : api-geometry :
Class : un.impl.geometry.s2d.Rectangle
Extends/Implements : un.impl.geometry.s2d.SingularGeometry2D
Subclasses : -

A Rectangle.
Specification :
with the current user coordinate system.
author  Johann Sorel


Variables : x, y, width, height
Functions : Rectangle, Rectangle, Rectangle, Rectangle, Rectangle, getX, setX, getY, setY, getWidth, setWidth, set, set, set, getHeight, setHeight, createPathIterator, toPolygon, getBoundingBox, intersects, intersection, toChars


protected double x

protected double y

protected double width

protected double height


public void Rectangle ()

public void Rectangle (Rectangle rectangle)

public void Rectangle (Extent extent)

public void Rectangle (BBox bbox)

public void Rectangle (double x, double y, double width, double height)


The x-axis coordinate of the side of the rectangle which has the smaller
x-axis coordinate value in the current user coordinate system.
public double getX ()

public void setX (double x)


The y-axis coordinate of the side of the rectangle which has the smaller
y-axis coordinate value in the current user coordinate system.
public double getY ()

public void setY (double y)


The width of the rectangle.
public double getWidth ()

public void setWidth (double width)


Copy given rectangle position and size.
param  bounds Rectangle to copy
public void set (Rectangle bounds)

public void set (Extent ext)

public void set (BBox bbox)


The height of the rectangle.
public double getHeight ()

public void setHeight (double height)

public PathIterator createPathIterator ()

public Polygon toPolygon ()

public BBox getBoundingBox ()

public boolean intersects (Rectangle r)

public Rectangle intersection (Rectangle r)

public Chars toChars ()