Skip to content

Commit af1af29

Browse files
authored
Mark getEllipsoidTensor() as public (#344)
May be useful for external clients of the API.
1 parent 10a615e commit af1af29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modern/ops/src/main/java/org/bonej/ops/ellipsoid/QuickEllipsoid.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,11 @@ public boolean contains(final double x, final double y, final double z) {
222222
*
223223
* @return 3×3 matrix containing H, the ellipsoid tensor
224224
*/
225-
private double[][] getEllipsoidTensor() {
225+
public double[][] getEllipsoidTensor() {
226226
if (this.eh == null) {
227227
this.eh = times(times(ev, ed), transpose(ev));
228228
}
229-
return this.eh;
229+
return this.eh.clone();
230230
}
231231

232232
/**

0 commit comments

Comments
 (0)