public static class Surround.Block extends Object
----------------------------------------------------------
| . ^ . |
| . | . |
|(--under--). extent .(--over--)|
| . | . |
|-----------. V .----------|
+++++++++++++++++++++++++++++++++++
++++++ Attached rectangle +++++++++
+++++++++++++++++++++++++++++++++++
| Constructor and Description |
|---|
Block()
Constructs an empty block.
|
Block(int extent)
Constructs a block with an extent but no over or under.
|
Block(int extent,
int under,
int over)
Constructs a block with all members supplied.
|
Block(Surround.Block other)
Clone constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Surround.Block |
add(Surround.Block other)
Creates a block which is represents the sum of this and another.
|
String |
toString() |
Surround.Block |
union(Surround.Block other)
Creates a block which represents the union of this and another.
|
public Block()
public Block(Surround.Block other)
other - template blockpublic Block(int extent)
extent - extentpublic Block(int extent,
int under,
int over)
extent - extent perpendicular to axisunder - non-negative overhang in negative direction
parallel to axisover - non-negative overhang in positive direction
parallel to axispublic Surround.Block add(Surround.Block other)
other - block to add to this onepublic Surround.Block union(Surround.Block other)
other - block to add to this oneCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.