alignedbox_diameter.hpp

Back to Diameter

pastel/geometry/diameter/

#ifndef PASTELGEOMETRY_ALIGNEDBOX_DIAMETER_HPP
#define PASTELGEOMETRY_ALIGNEDBOX_DIAMETER_HPP

#include "pastel/geometry/diameter/alignedbox_diameter.h"

#include "pastel/sys/vector/vector_tools.h"

namespace Pastel
{

    template <typename Real, integer N>
    Real diameter2(
        const AlignedBox<Real, N>& box)
    {
        return dot(box.extent());
    }

}

#endif