Interface SCNBoundingVolume

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getBoundingBoxMinMax​(@Nullable SCNVector3 min, @Nullable SCNVector3 max)
      getBoundingBoxMin:max: Fill the min and max vectors with the min and max vertex of the bounding box.
      boolean getBoundingSphereCenterRadius​(@Nullable SCNVector3 center, @Nullable org.moe.natj.general.ptr.NFloatPtr radius)
      getBoundingSphereCenter:radius: Fill the center vector with the center of the bounding sphere and store the radius of the bounding sphere in 'radius'.
      void setBoundingBoxMinMax​(@Nullable SCNVector3 min, @Nullable SCNVector3 max)
      setBoundingBoxMin:max: Override the receiver bounding box with the min and max vectors provided (in local space of the receiver).
    • Method Detail

      • getBoundingBoxMinMax

        boolean getBoundingBoxMinMax​(@Nullable
                                     @Nullable SCNVector3 min,
                                     @Nullable
                                     @Nullable SCNVector3 max)
        getBoundingBoxMin:max: Fill the min and max vectors with the min and max vertex of the bounding box. the returned bounding box is in local space of the receiver.
        Parameters:
        min - A pointer to a SCNVector3 to store the min vertex of the bounding box into.
        max - A pointer to a SCNVector3 to store the max vertex of the bounding box into.
      • getBoundingSphereCenterRadius

        boolean getBoundingSphereCenterRadius​(@Nullable
                                              @Nullable SCNVector3 center,
                                              @Nullable
                                              @Nullable org.moe.natj.general.ptr.NFloatPtr radius)
        getBoundingSphereCenter:radius: Fill the center vector with the center of the bounding sphere and store the radius of the bounding sphere in 'radius'. the returned bounding sphere is in local space of the receiver.
        Parameters:
        center - A pointer to a SCNVector3 to store the center of the bounding sphere into.
        radius - A pointer to a CGFloat to store the radius of the bounding sphere into.
      • setBoundingBoxMinMax

        void setBoundingBoxMinMax​(@Nullable
                                  @Nullable SCNVector3 min,
                                  @Nullable
                                  @Nullable SCNVector3 max)
        setBoundingBoxMin:max: Override the receiver bounding box with the min and max vectors provided (in local space of the receiver). Passing nil as arguments will recompute the original bounding box of the receiver.
        Parameters:
        min - A pointer to a SCNVector3 representing the min vertex of the desired bounding box.
        max - A pointer to a SCNVector3 representing the max vertex of the desired bounding box.