Skip to content

Commit 4657d24

Browse files
authored
Fix array syntax in ROI example code
backslashes appeared in the Java example code, possibly as a result of cut-and-paste from a browser. Fixed by removing the backslashes
1 parent b2d24dc commit 4657d24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_pages/develop/rois.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ ROIs can be combined via a number of operations, namely: `and`, `or`, `negate`,
4949
The below example creates a composite ROI:
5050

5151
```java
52-
final Sphere s1 = new ClosedWritableSphere( new double\[\] { 0, 0, 0 }, 3.5 );
53-
final Sphere s2 = new ClosedWritableSphere( new double\[\] { 1, 2, 0 }, 1.5 );
54-
final Sphere s3 = new ClosedWritableSphere( new double\[\] { 2, 2, 0 }, 1.5 );
52+
final Sphere s1 = new ClosedWritableSphere( new double[] { 0, 0, 0 }, 3.5 );
53+
final Sphere s2 = new ClosedWritableSphere( new double[] { 1, 2, 0 }, 1.5 );
54+
final Sphere s3 = new ClosedWritableSphere( new double[] { 2, 2, 0 }, 1.5 );
5555
final RealMaskRealInterval composite = s1.and( s2.minus( s3 ) ).and( s3 ).or( s1.minus( s3.negate() ) );
5656
```
5757

0 commit comments

Comments
 (0)