org.apache.commons.math3.geometry.spherical.oned

## Class SubLimitAngle

- java.lang.Object
- - org.apache.commons.math3.geometry.partitioning.AbstractSubHyperplane<Sphere1D,Sphere1D>
  - - org.apache.commons.math3.geometry.spherical.oned.SubLimitAngle

- All Implemented Interfaces:
    SubHyperplane<Sphere1D>

      public class SubLimitAngle
      extends AbstractSubHyperplane<Sphere1D,Sphere1D>

  This class represents sub-hyperplane for `LimitAngle`.

  Instances of this class are guaranteed to be immutable.

  Since:
    3.3
  Version:
    $Id: SubLimitAngle.java 1563714 2014-02-02 20:55:14Z tn $

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.commons.math3.geometry.partitioning.SubHyperplane

      `SubHyperplane.SplitSubHyperplane<U extends Space>`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SubLimitAngle(Hyperplane<Sphere1D> hyperplane, Region<Sphere1D> remainingRegion)` Simple constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected AbstractSubHyperplane<Sphere1D,Sphere1D>` | `buildNew(Hyperplane<Sphere1D> hyperplane, Region<Sphere1D> remainingRegion)` Build a sub-hyperplane from an hyperplane and a region.
    `double` | `getSize()` Get the size of the instance.
    `boolean` | `isEmpty()` Check if the instance is empty.
    `Side` | `side(Hyperplane<Sphere1D> hyperplane)` Compute the relative position of the instance with respect to an hyperplane.
    `SubHyperplane.SplitSubHyperplane<Sphere1D>` | `split(Hyperplane<Sphere1D> hyperplane)` Split the instance in two parts by an hyperplane.

    - ### Methods inherited from class org.apache.commons.math3.geometry.partitioning.AbstractSubHyperplane

      `applyTransform, copySelf, getHyperplane, getRemainingRegion, reunite`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SubLimitAngle

          public SubLimitAngle(Hyperplane<Sphere1D> hyperplane,
                       Region<Sphere1D> remainingRegion)

      Simple constructor.
      Parameters:
        `hyperplane` - underlying hyperplane
        `remainingRegion` - remaining region of the hyperplane

  - ### Method Detail

    - #### getSize

          public double getSize()

      Get the size of the instance.
      Specified by:
        `getSize` in interface `SubHyperplane<Sphere1D>`
      Overrides:
        `getSize` in class `AbstractSubHyperplane<Sphere1D,Sphere1D>`
      Returns:
        the size of the instance (this is a length in 1D, an area in 2D, a volume in 3D ...)

    - #### isEmpty

          public boolean isEmpty()

      Check if the instance is empty.
      Specified by:
        `isEmpty` in interface `SubHyperplane<Sphere1D>`
      Overrides:
        `isEmpty` in class `AbstractSubHyperplane<Sphere1D,Sphere1D>`
      Returns:
        true if the instance is empty

    - #### buildNew

          protected AbstractSubHyperplane<Sphere1D,Sphere1D> buildNew(Hyperplane<Sphere1D> hyperplane,
                                                          Region<Sphere1D> remainingRegion)

      Build a sub-hyperplane from an hyperplane and a region.
      Specified by:
        `buildNew` in class `AbstractSubHyperplane<Sphere1D,Sphere1D>`
      Parameters:
        `hyperplane` - underlying hyperplane
        `remainingRegion` - remaining region of the hyperplane
      Returns:
        a new sub-hyperplane

    - #### side

          public Side side(Hyperplane<Sphere1D> hyperplane)

      Compute the relative position of the instance with respect to an hyperplane.
      Specified by:
        `side` in interface `SubHyperplane<Sphere1D>`
      Specified by:
        `side` in class `AbstractSubHyperplane<Sphere1D,Sphere1D>`
      Parameters:
        `hyperplane` - hyperplane to check instance against
      Returns:
        one of `Side.PLUS`, `Side.MINUS`, `Side.BOTH`, `Side.HYPER`

    - #### split

          public SubHyperplane.SplitSubHyperplane<Sphere1D> split(Hyperplane<Sphere1D> hyperplane)

      Split the instance in two parts by an hyperplane.
      Specified by:
        `split` in interface `SubHyperplane<Sphere1D>`
      Specified by:
        `split` in class `AbstractSubHyperplane<Sphere1D,Sphere1D>`
      Parameters:
        `hyperplane` - splitting hyperplane
      Returns:
        an object containing both the part of the instance on the plus side of the hyperplane and the part of the instance on the minus side of the hyperplane

Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.