类 RegionFactory<S extends Space>

java.lang.Object
org.hipparchus.geometry.partitioning.RegionFactory<S>
类型参数:
S - 空间的类型。

public class RegionFactory<S extends Space> extends Object
该类是Region的工厂。
  • 构造器详细资料

    • RegionFactory

      public RegionFactory()
      简单构造函数。
  • 方法详细资料

    • buildConvex

      @SafeVarargs public final Region<S> buildConvex(Hyperplane<S>... hyperplanes)
      从一组边界超平面构建凸区域。
      参数:
      hyperplanes - 边界超平面的集合
      返回:
      一个新的凸区域,如果集合为空则返回null
    • union

      public Region<S> union(Region<S> region1, Region<S> region2)
      计算两个区域的并集。
      参数:
      region1 - 第一个区域(操作后将无法使用,因为其中的部分将在新区域中重用)
      region2 - 第二个区域(操作后将无法使用,因为其中的部分将在新区域中重用)
      返回:
      一个新区域,即region1并region2的结果
    • intersection

      public Region<S> intersection(Region<S> region1, Region<S> region2)
      计算两个区域的交集。
      参数:
      region1 - 第一个区域(操作后将无法使用,因为其中的部分将在新区域中重用)
      region2 - 第二个区域(操作后将无法使用,因为其中的部分将在新区域中重用)
      返回:
      一个新区域,即region1交region2的结果
    • xor

      public Region<S> xor(Region<S> region1, Region<S> region2)
      计算两个区域的对称差(异或)。
      参数:
      region1 - 第一个区域(操作后将无法使用,因为其中的部分将在新区域中重用)
      region2 - 第二个区域(操作后将无法使用,因为其中的部分将在新区域中重用)
      返回:
      一个新区域,即region1异或region2的结果
    • difference

      public Region<S> difference(Region<S> region1, Region<S> region2)
      计算两个区域的差异。
      参数:
      region1 - 第一个区域(操作后将无法使用,因为其中的部分将在新区域中重用)
      region2 - 第二个区域(操作后将无法使用,因为其中的部分将在新区域中重用)
      返回:
      一个新区域,即region1减region2的结果
    • getComplement

      public Region<S> getComplement(Region<S> region)
      获取区域的补集(交换内部/外部)。
      参数:
      region - 要补充的区域,它不会被修改,将构建一个新的独立区域
      返回:
      一个新区域,即指定区域的补集