X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d.datastructures%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fdatastructures%2FBox.java;fp=org.simantics.g3d.datastructures%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fdatastructures%2FBox.java;h=ebe44e3b7fddd94f0ca6e9336f5a4f98f009cab5;hb=13a33b78de4a6b873fd74083ecdf3dd215452c0d;hp=0000000000000000000000000000000000000000;hpb=f13bbe4a5dd9b50077ab6110bfb20257e4ebf6f0;p=simantics%2F3d.git diff --git a/org.simantics.g3d.datastructures/src/org/simantics/g3d/datastructures/Box.java b/org.simantics.g3d.datastructures/src/org/simantics/g3d/datastructures/Box.java new file mode 100644 index 00000000..ebe44e3b --- /dev/null +++ b/org.simantics.g3d.datastructures/src/org/simantics/g3d/datastructures/Box.java @@ -0,0 +1,32 @@ +package org.simantics.g3d.datastructures; + +import javax.vecmath.Point3d; + +public class Box { + + Point3d min; + Point3d max; + + public Point3d getMin() { + return min; + } + public Point3d getMax() { + return max; + } + + public Box(Point3d min, Point3d max) { + this.max = max; + this.min = min; + } + + public Box(double minx, double miny, double minz, double maxx, double maxy, double maxz) { + min = new Point3d(minx, miny, minz); + max = new Point3d(maxx, maxy, maxz); + } + + public Box(double min[], double max[]) { + this.min = new Point3d(min); + this.max = new Point3d(max); + } + +}