@Test(expected = RuntimeException.class) public void testSamplePointsThrowsRuntimeExceptionIfNotInitialized() { final Ellipsoid ellipsoid = new Ellipsoid(1, 2, 3); ellipsoid.samplePoints(10); }
public List<Vector3d> samplePoints(final long n) throws RuntimeException { if (!samplingInitialized()) { throw new RuntimeException("Sampling has not been initialized"); } final List<Vector3d> points = isotropicSampling.calculate(new double[] { a, b, c }, n); points.forEach(this::mapToOrientation); points.forEach(p -> p.add(centroid)); return points; }
Ellipsoid { public List<Vector3d> samplePoints(final long n) throws RuntimeException { if (!samplingInitialized()) { throw new RuntimeException("Sampling has not been initialized"); } final List<Vector3d> points = isotropicSampling.calculate(new double[] { a, b, c }, n); points.forEach(this::mapToOrientation); points.forEach(p -> p.add(centroid)); return points; } }
Ellipsoid { public List<Vector3d> samplePoints(final long n) throws RuntimeException { if (!samplingInitialized()) { throw new RuntimeException("Sampling has not been initialized"); } final List<Vector3d> points = isotropicSampling.calculate(new double[] { a, b, c }, n); points.forEach(this::mapToOrientation); points.forEach(p -> p.add(centroid)); return points; } Ellipsoid(final double a, final double b, final double c);  Ellipsoid(final Vector3dc u, final Vector3dc v, final Vector3dc w); }
Ellipsoid { public List<Vector3d> samplePoints(final long n) throws RuntimeException { if (!samplingInitialized()) { throw new RuntimeException("Sampling has not been initialized"); } final List<Vector3d> points = isotropicSampling.calculate(new double[] { a, b, c }, n); points.forEach(this::mapToOrientation); points.forEach(p -> p.add(centroid)); return points; } Ellipsoid(final double a, final double b, final double c);  Ellipsoid(final Vector3dc u, final Vector3dc v, final Vector3dc w); double getA(); void setA(final double a); double getB(); void setB(final double b); double getC(); void setC(final double c); Vector3d getCentroid(); void setCentroid(final Vector3dc centroid); Matrix4d getOrientation(); void setOrientation(final Matrix3dc semiAxes); List<Vector3d> getSemiAxes(); double getVolume(); @SuppressWarnings("unchecked") void initSampling(final OpEnvironment ops); List<Vector3d> samplePoints(final long n); void setSemiAxes(final Vector3dc u, final Vector3dc v,
		final Vector3dc w); }
Ellipsoid { public List<Vector3d> samplePoints(final long n) throws RuntimeException { if (!samplingInitialized()) { throw new RuntimeException("Sampling has not been initialized"); } final List<Vector3d> points = isotropicSampling.calculate(new double[] { a, b, c }, n); points.forEach(this::mapToOrientation); points.forEach(p -> p.add(centroid)); return points; } Ellipsoid(final double a, final double b, final double c);  Ellipsoid(final Vector3dc u, final Vector3dc v, final Vector3dc w); double getA(); void setA(final double a); double getB(); void setB(final double b); double getC(); void setC(final double c); Vector3d getCentroid(); void setCentroid(final Vector3dc centroid); Matrix4d getOrientation(); void setOrientation(final Matrix3dc semiAxes); List<Vector3d> getSemiAxes(); double getVolume(); @SuppressWarnings("unchecked") void initSampling(final OpEnvironment ops); List<Vector3d> samplePoints(final long n); void setSemiAxes(final Vector3dc u, final Vector3dc v,
		final Vector3dc w);  }