class geom::KDop — HIRO 0.7.0 documentation

# class geom::KDop

## Overview

Definition of abstract k-DOP bounding volume structure. More…

    #include <GeometryStructures.h>

    class KDop {
    public:
        // structs

        struct PrincipalAxis;

        // construction

        KDop();

        // methods

        void Set(const glm::vec3* points, const size_t num_of_points);
        bool IsValid() const;
        bool AreIntersected(const KDop& other);
        bool IsIncluded(const glm::vec3& point);

    protected:
        // construction

        KDop(const std::vector<glm::vec3>& dirs);
    };

## Detailed Documentation

Definition of abstract k-DOP bounding volume structure.

### Methods

    void Set(const glm::vec3* points, const size_t num_of_points)

Set k-dop so that it covers all specified points.

    bool IsValid() const

Checks if all.

    bool AreIntersected(const KDop& other)

Checks if the k-dop has an intersection with other k-dop.

    bool IsIncluded(const glm::vec3& point)

Checks if point is included in range of k-dop.