/** {@inheritDoc} */ @Override protected AbstractSubHyperplane<Euclidean1D, Euclidean1D> buildNew(final Hyperplane<Euclidean1D> hyperplane, final Region<Euclidean1D> remainingRegion) { return new SubOrientedPoint(hyperplane, remainingRegion); }
/** {@inheritDoc} */ @Override public SplitSubHyperplane<Euclidean1D> split(final Hyperplane<Euclidean1D> hyperplane) { final double global = hyperplane.getOffset(((OrientedPoint) getHyperplane()).getLocation()); if (global < -1.0e-10) { return new SplitSubHyperplane<Euclidean1D>(null, this); } else if (global > 1.0e-10) { return new SplitSubHyperplane<Euclidean1D>(this, null); } else { return new SplitSubHyperplane<Euclidean1D>(null, null); } }
/** {@inheritDoc} */ @Override public SplitSubHyperplane<Euclidean1D> split(final Hyperplane<Euclidean1D> hyperplane) { final double global = hyperplane.getOffset(((OrientedPoint) getHyperplane()).getLocation()); if (global < -1.0e-10) { return new SplitSubHyperplane<Euclidean1D>(null, this); } else if (global > 1.0e-10) { return new SplitSubHyperplane<Euclidean1D>(this, null); } else { return new SplitSubHyperplane<Euclidean1D>(null, null); } }
/** Build a region covering the whole hyperplane. * <p>Since this class represent zero dimension spaces which does * not have lower dimension sub-spaces, this method returns a dummy * implementation of a {@link * org.apache.commons.math3.geometry.partitioning.SubHyperplane SubHyperplane}. * This implementation is only used to allow the {@link * org.apache.commons.math3.geometry.partitioning.SubHyperplane * SubHyperplane} class implementation to work properly, it should * <em>not</em> be used otherwise.</p> * @return a dummy sub hyperplane */ public SubOrientedPoint wholeHyperplane() { return new SubOrientedPoint(this, null); }
/** {@inheritDoc} */ @Override protected AbstractSubHyperplane<Euclidean1D, Euclidean1D> buildNew(final Hyperplane<Euclidean1D> hyperplane, final Region<Euclidean1D> remainingRegion) { return new SubOrientedPoint(hyperplane, remainingRegion); }
/** Build a region covering the whole hyperplane. * <p>Since this class represent zero dimension spaces which does * not have lower dimension sub-spaces, this method returns a dummy * implementation of a {@link * org.apache.commons.math3.geometry.partitioning.SubHyperplane SubHyperplane}. * This implementation is only used to allow the {@link * org.apache.commons.math3.geometry.partitioning.SubHyperplane * SubHyperplane} class implementation to work properly, it should * <em>not</em> be used otherwise.</p> * @return a dummy sub hyperplane */ public SubOrientedPoint wholeHyperplane() { return new SubOrientedPoint(this, null); }