Maven module :un.api : api-geometry :
Class : un.api.geometry.Extent
Extends/Implements : un.api.CObject
Subclasses : -

An extent defines sizes along axes.
Unlike BoundingBox, only a size is indicated, not a start/end pair.
author  Johann Sorel


Variables : -
Functions : getDimension, get, set, set, expand, shrink, setToZero, isEmpty, copy, equals, toChars



public int getDimension ()

public double get (int ordinate)

public void set (int ordinate, double size)


Copy given extent.
param  extent to copy, not null.
public void set (Extent extent)


Increase this extent dimension value replacing them
by given extent values if they are greater.
param  extent, not null
public void expand (Extent extent)


Decrease this extent dimension value replacing them
by given extent values if they are smaller.
param  extent, not null
public void shrink (Extent extent)


Set all dimension values to zero.
public void setToZero ()


Check if extent is empty, all dimension values set to zero.
return  true if extent is empty.
public boolean isEmpty ()


Make a copy of this extent.
return  Extent never null
public Extent copy ()

public boolean equals (Object obj)

public Chars toChars ()