2021.0.07

• ### Method Summary

All Methods
Modifier and Type Method and Description
`void` ```move2D(double aX, double aY)```
Moves this `ILcd2DEditableShape` to the given point in the 2D space.
`void` `move2D(ILcdPoint aPoint)`
Moves this `ILcd2DEditableShape` to the given point in the 2D space.
`void` `setHeight(double aHeight)`
Sets the height of the bounds (the extent along the y-axis).
`void` ```setTo2DIntersection(double aX, double aY, double aWidth, double aHeight)```
Calculates the 2D intersection of this `ILcd2DEditableBounds` object and a given rectangle.
`void` `setTo2DIntersection(ILcdBounds aBounds)`
Calculates the 2D intersection of this `ILcd2DEditableBounds` and a given `ILcdBounds`.
`void` ```setTo2DUnion(double aX, double aY, double aWidth, double aHeight)```
Calculates the 2D union of this `ILcd2DEditableBounds` object and a given rectangle.
`void` `setTo2DUnion(ILcdBounds aBounds)`
Calculates the 2D union of this `ILcd2DEditableBounds` and a given `ILcdBounds`.
`void` ```setToIncludePoint2D(double aX, double aY)```
Calculates the 2D extension of this `ILcd2DEditableBounds` object that contains a given point.
`void` `setToIncludePoint2D(ILcdPoint aPoint)`
Calculates the 2D extension of this `ILcd2DEditableBounds` object that contains a given `ILcdPoint`.
`void` `setWidth(double aWidth)`
Sets the width of the bounds (the extent along the x-axis).
`void` ```translate2D(double aDeltaX, double aDeltaY)```
Translates this `ILcd2DEditableShape` from its current position over the given translation vector in the 2D space.
• ### Methods inherited from interface com.luciad.shape.ILcdBounds

`cloneAs2DEditableBounds, cloneAs3DEditableBounds, contains2D, contains2D, contains3D, contains3D, getCenter, getDepth, getHeight, getLocation, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getWidth, interacts2D, interacts2D, interacts3D, interacts3D, isDefined`
• ### Methods inherited from interface com.luciad.shape.ILcdShape

`contains2D, contains2D, contains3D, contains3D, getFocusPoint`
• ### Methods inherited from interface com.luciad.shape.ILcdBounded

`getBounds`
• ### Methods inherited from interface com.luciad.util.ILcdCloneable

`clone`
• ### Method Detail

• #### move2D

`void move2D(ILcdPoint aPoint)`
Moves this `ILcd2DEditableShape` to the given point in the 2D space. The focus point is used as the handle by which the shape is moved. Only the first two dimensions of the `ILcdShape` and the `ILcdPoint` are considered. The third dimension is left unchanged.

If this bounds was `undefined`, it becomes defined after the move.

Specified by:
`move2D` in interface `ILcd2DEditableShape`
Parameters:
`aPoint` - the `ILcdPoint` to move to.
`ILcd2DEditableShape.move2D(double, double)`
• #### move2D

```void move2D(double aX,
double aY)```
Moves this `ILcd2DEditableShape` to the given point in the 2D space. The focus point is used as the handle by which the shape is moved. Only the first two dimensions of the `ILcdShape` are considered. The third dimension is left unchanged.

If this bounds was `undefined`, it becomes defined after the move.

Specified by:
`move2D` in interface `ILcd2DEditableShape`
Parameters:
`aX` - the x coordinate of the point.
`aY` - the y coordinate of the point.
• #### translate2D

```void translate2D(double aDeltaX,
Translates this `ILcd2DEditableShape` from its current position over the given translation vector in the 2D space. Only the first two dimensions of the `ILcdShape` are considered. The third dimension is left unchanged.

If this bounds was `undefined`, it becomes defined after the translation.

Specified by:
`translate2D` in interface `ILcd2DEditableShape`
Parameters:
`aDeltaX` - the x coordinate of the translation vector.
`aDeltaY` - the y coordinate of the translation vector.
• #### setWidth

`void setWidth(double aWidth)`
Sets the width of the bounds (the extent along the x-axis).

If this bounds was `undefined`, it becomes defined.

Parameters:
`aWidth` - the new width.
• #### setHeight

`void setHeight(double aHeight)`
Sets the height of the bounds (the extent along the y-axis).

If this bounds was `undefined`, it becomes defined.

Parameters:
`aHeight` - the new height.
• #### setTo2DIntersection

`void setTo2DIntersection(ILcdBounds aBounds)`
Calculates the 2D intersection of this `ILcd2DEditableBounds` and a given `ILcdBounds`. The result contains at least all the points that are contained in both `ILcdBounds` objects. Only the first two dimensions of the `ILcdBounds` objects are considered. This `ILcd2DEditableBounds` object is updated with the result. Its third dimension is left unchanged.

If this bounds is `undefined`, nothing changes. If the argument bounds is `undefined`, this bounds becomes undefined as well.

Parameters:
`aBounds` - the other `ILcdBounds` operand for the intersection.
`setTo2DIntersection(double, double, double, double)`
• #### setTo2DIntersection

```void setTo2DIntersection(double aX,
double aY,
double aWidth,
double aHeight)```
Calculates the 2D intersection of this `ILcd2DEditableBounds` object and a given rectangle. The result contains at least all the points that are contained both in this `ILcdBounds` objects and in the rectangle. Only the first two dimensions of this `ILcdBounds` object are considered. It is updated with the result. Its third dimension is left unchanged.

If this bounds is `undefined`, nothing changes.

Parameters:
`aX` - the x coordinate of the rectangle.
`aY` - the y coordinate of the rectangle.
`aWidth` - the width of the rectangle.
`aHeight` - the height of the rectangle.
• #### setTo2DUnion

`void setTo2DUnion(ILcdBounds aBounds)`
Calculates the 2D union of this `ILcd2DEditableBounds` and a given `ILcdBounds`. The result contains at least all the points that are contained in either of the `ILcdBounds` objects (and typically more). Only the first two dimensions of the `ILcdBounds` objects are considered. This `ILcd2DEditableBounds` object is updated with the result. Its third dimension is left unchanged.

If this bounds is `undefined`, it is set to the argument bounds. If the argument bounds is undefined, nothing happens.

Parameters:
`aBounds` - the other `ILcdBounds` operand for the union.
`setTo2DUnion(double, double, double, double)`
• #### setTo2DUnion

```void setTo2DUnion(double aX,
double aY,
double aWidth,
double aHeight)```
Calculates the 2D union of this `ILcd2DEditableBounds` object and a given rectangle. The result contains at least all the points that are contained in the `ILcdBounds` object and in the rectangle (and typically more). Only the first two dimensions of this `ILcdBounds` object are considered. It is updated with the result. Its third dimension is left unchanged.

If this bounds is `undefined`, it is set to the arguments.

Parameters:
`aX` - the x coordinate of the rectangle.
`aY` - the y coordinate of the rectangle.
`aWidth` - the width of the rectangle.
`aHeight` - the height of the rectangle.
• #### setToIncludePoint2D

`void setToIncludePoint2D(ILcdPoint aPoint)`
Calculates the 2D extension of this `ILcd2DEditableBounds` object that contains a given `ILcdPoint`. The result contains at least the given point and all the points that are contained in this `ILcd2DEditableBounds` (and typically more). Only the first two dimensions of this `ILcdBounds` object and the `ILcdPoint` are considered. This `ILcdBounds` object is updated with the result. Its third dimension is left unchanged.

If this bounds is `undefined`, it is set to the point.

Parameters:
`aPoint` - the point that should be inside (or at the edge) after the extension of the bounds.
`setToIncludePoint2D(double, double)`
• #### setToIncludePoint2D

```void setToIncludePoint2D(double aX,
double aY)```
Calculates the 2D extension of this `ILcd2DEditableBounds` object that contains a given point. The result contains at least the given point and all the points that are contained in this `ILcd2DEditableBounds` (and typically more). Only the first two dimensions of this `ILcdBounds` object are considered. It is updated with the result. Its third dimension is left unchanged.

If this bounds is `undefined`, it is set to the point.

Parameters:
`aX` - the x coordinate of the point.
`aY` - the y coordinate of the point.